The rover Opportunity has investigated the rim of Endeavour Crater, a large ancient impact crater on Mars. Basaltic breccias produced by the impact form the rim deposits, with stratigraphy similar to that observed at similar-sized craters on Earth. Highly localized zinc enrichments in some breccia materials suggest hydrothermal alteration of rim deposits. Gypsum-rich veins cut sedimentary rocks adjacent to the crater rim. The gypsum was precipitated from low-temperature aqueous fluids flowing upward from the ancient materials of the rim, leading temporarily to potentially habitable conditions and providing some of the waters involved in formation of the ubiquitous sulfate-rich sandstones of the Meridiani region.