To be able to sleep, whales shut down half of their brain at a time. Being partially awake allows them to continue breathing and be aware of their surroundings. Whales will usually stay in place as they sleep near the surface. As they rest, they are switching which hemisphere of the brain is awake.