Why does Mars sometimes seem to move backwards?
Earth moves faster on the inside track. When it overtakes Mars, the line of sight from Earth to Mars swings backwards against the distant stars for several weeks — apparent retrograde motion. Mars itself never reverses.
Schematic: circular, flat orbits with the true periods (365.25 and 687 days) and mean distances (1 and 1.52 AU).