Egrets also like to roost at night by sleeping standing up with one foot in the water and their head tucked under a wing. They stay alert, even when they sleep. This allows them to keep an eye out for predators or prey.