Observations from orbital spacecraft have shown that Jezero crater on Mars contains a prominent fan-shaped body of sedimentary rock deposited at its western margin. The Perseverance rover landed in Jezero crater in February 2021. We analyze images taken by the rover in the 3 months after landing. The fan has outcrop faces, which were invisible from orbit, that record the hydrological evolution of Jezero crater. We interpret the presence of inclined strata in these outcrops as evidence of deltas that advanced into a lake. In contrast, the uppermost fan strata are composed of boulder conglomerates, which imply deposition by episodic high-energy floods. This sedimentary succession indicates a transition from sustained hydrologic activity in a persistent lake environment to highly energetic short-duration fluvial flows.