The term Epicycle was used for the supposed small circular motion of planets in their apparent large circular motion around Earth. The epicycle concept explained Retrograde Motion (motion in the opposite direction) of planets, that against the Celestial Sphere, the planets moved opposite their usual direction on occasion. The large circular motion/orbit was known as the Deferent, and the planet itself apparently moved in a circular motion, an epicycle around the point in space that follows the deferent.
Ptolemy added the concept of Equants, adjusting the center of the deferent orbit and explaining the observed Orbital Speed. This system came close to explaining the observed motions of planets, finally to be set aside when Heliocentricity (that planets orbit the Sun) and the ellipticity of orbits were worked out, by Copernicus and Kepler.
The term epicycle has more recently been used to indicate characteristics of some orbits of Circumstellar Disk material around stars and of stars around galaxies, and orbits around stable Lagrangian Points, to indicate much the same thing: relative circular motion around the Keplerian Orbit. The term Epicyclic Frequency (in the case of orbits around galaxies) indicates the number of small circles completed for each large circle completed.