Atmospheric escape is a fundamental process in the long-term habitability evolution of terrestrial planets. Recent observations on Mars have found the concurrence of the severe ionospheric erosion and the large-amplitude, quasi-perpendicular magnetosonic waves. However, whether and then how these magnetosonic waves had contributed to the ionospheric erosion remains unclear. Here we propose a new candidate mechanism, electron Landau heating by magnetosonic waves, for the Martian ionospheric erosion. In contrast to the cyclotron resonance with oxygen atomic and molecular ions above the escape energies, the magnetosonic waves Landau-resonate with the thermal electrons at energy channels of the order of 0.01-0.1 eV. Through the Landau resonance over tens of minutes, the large-amplitude (12 nT) magnetosonic waves can heat the topside ionospheric electrons to ∼2 times the normal temperature. The topside ionospheric electron heating could result in the enhancement of the ambipolar electric potential and eventually facilitate the escape of ionospheric plasma. Plain Language Summary An atmosphere of sufficient density is a fundamental condition for a habitable terrestrial planet. Mars as a terrestrial planet in the habitable zone of our solar system lost much of its atmosphere over billions of years and has thus become a unique testing ground to understand the planetary atmospheric loss processes. Recent observations on Mars have shown that the severe erosion of the ionosphere, an ionized part of the upper atmosphere, was accompanied by the large-amplitude, quasi-perpendicular magnetosonic waves. However, whether and then how these magnetosonic waves had contributed to the ionospheric erosion remains unclear. On the basis of space observations and numerical calculations, we propose a new physical mechanism, electron Landau heating by magnetosonic waves, for the Martian ionospheric erosion. The large-amplitude magnetosonic waves can heat the topside ionospheric electrons to ∼2 times the normal temperature over tens of minutes, enhance the ambipolar electric potential, and eventually facilitate the escape of ionospheric plasma. The electron Landau heating process may also contribute to the ionospheric erosion of other terrestrial planets within and beyond our solar system.