Mars's thick early atmosphere was likely lost to space, and the Sun is a potential culprit. When high-energy solar photons strike the upper Martian atmosphere they can ionize gas molecules, causing the atmosphere to erode over time.