A sleep-deprived brain is impaired in its ability to learn and to make new memories. Sleep is also required after new learning in order to permanently store the new learning and not to forget. Good mental functioning depends on getting lots of good sleep.