Hydropeaking hydropower plants are the main source of renewable energy, meeting sub-daily peaks in electricity demand. They induce rapid artificial flow variations, highly variable velocities, drift, and stranding risks for aquatic organisms. In hydropeaking reaches, microhabitat selection likely depends on both present and past hydraulics (flow velocity and water depth); this study aims to assess their relative impact. For this purpose, we used observations of fish abundance in 1,180 microhabitats (507 sampled by electrofishing, 673 by snorkeling) and of invertebrate abundance in 36 microhabitats (hyporheic and benthic) in a medium-sized hydropeaking river. We described past hydraulics of microhabitats over the 15 days preceding sampling, using a 2D hydrodynamic model, by identifying microhabitats dewatering (drying during >10 hr) or with high-velocity conditions (>1.3 m s À1 during >10 hr).Invertebrates guilds (defined based on their selection of present hydraulics in rivers without hydropeaking) responded significantly to past hydraulics, with abundances 3.5-15.3 times lower in dewatering habitats. Selection for present hydraulics by invertebrates was different from that observed in rivers without hydropeaking. For more mobile fish, responses were weaker and different, with a "bank" guild selecting dewatering microhabitats and, secondarily, a "midstream" guild avoiding them. Selection of present hydraulics by fish was similar to that observed in rivers without hydropeaking. Overall, past hydraulics influenced microhabitat selection, with stronger effects on invertebrates and stronger effects of dewatering than of high past velocities. However, high past velocities force fish to move and invertebrates to experience a large range of velocity.