In ancient geocentric astronomy (notably Ptolemy's model), epicycles and deferents were geometric constructs used to explain the observed irregular motions of the Sun, Moon, and planets—especially retrograde motion and variations in speed—while keeping Earth at the center.
A planet moves on a small circle (epicycle) whose center travels along a larger circle (deferent) around Earth. When the planet is on the epicycle's far side from Earth, it appears to move slower; on the near side, faster. This accounted for changes in apparent speed.
The deferent's center could be offset from Earth (eccentric), and the epicycle's motion could be reversed relative to the deferent, producing the apparent backward (retrograde) loops of planets like Mars.
While these devices successfully predicted planetary positions for centuries, they were mathematical fictions, not physical realities. The Copernican heliocentric model and Kepler's elliptical orbits eventually replaced them, providing a physically accurate description of planetary motion.