Spore-forming bacteria are of particular concern in the context of planetary protection because their tough endospores may withstand certain sterilization procedures as well as the harsh environments of outer space or planetary surfaces. To test their hardiness on a hypothetical mission to Mars, spores of Bacillus subtilis 168 and Bacillus pumilus SAFR-032 were exposed for 1.5 years to selected parameters of space in the experiment PROTECT during the EXPOSE-E mission on board the International Space Station. Mounted as dry layers on spacecraft-qualified aluminum coupons, the "trip to Mars" spores experienced space vacuum, cosmic and extraterrestrial solar radiation, and temperature fluctuations, whereas the "stay on Mars" spores were subjected to a simulated martian environment that included atmospheric pressure and composition, and UV and cosmic radiation. The survival of spores from both assays was determined after retrieval. It was clearly shown that solar extraterrestrial UV radiation (λ≥110 nm) as well as the martian UV spectrum (λ≥200 nm) was the most deleterious factor applied; in some samples only a few survivors were recovered from spores exposed in monolayers. Spores in multilayers survived better by several orders of magnitude. All other environmental parameters encountered by the "trip to Mars" or "stay on Mars" spores did little harm to the spores, which showed about 50% survival or more. The data demonstrate the high chance of survival of spores on a Mars mission, if protected against solar irradiation. These results will have implications for planetary protection considerations.