Peristalsis is a common motion in various biological systems, especially the upper urinary tract, where it plays a pivotal role in conveying urine from the kidneys to the bladder. Using computational fluid dynamics, this study aims to investigate the effect of various peristaltic parameters on the motion of an obstacle through a two‐dimensional ureter. Methodologically, Incompressible Navier–Stokes equations were utilized as the fluid domain's governing equations, and the Dynamic Mesh method (DM) was employed to simulate the peristaltic and obstacle motion. The peristaltic motion was modeled by a sinusoidal contraction wave propagating alongside the ureter at the physiological speed, and the motion of the obstruction through the ureter, which is caused by the fluid forces applied on its surface, was explored using the equation of Newton's second law. Various test cases of different shapes and sizes were supposed as kidney stones to understand the influence of the peristalsis properties on the stone removal process. The results show that the motion of the kidney stone is highly influenced by the gradient pressure force applied to its surface in the fluid domain. Moreover, investigating the effects of the peristaltic physical properties on the obstacle's motion indicates that the stone's motion is dependent on these parameters. Furthermore, this analysis provides insight into the peristaltic motion effects, assisting physicians in developing new medicines to facilitate the kidney stone removal process based on its shape and size.