This diagram illustrates the positions of Mars, Earth and the sun during a period that occurs approximately every 26 months, when Mars passes almost directly behind the sun from Earth's perspective.
+
Image Credit: NASA/JPL-Caltech