Of the many advantages conferred by sleep on the brain, that of memory is especially impressive, and particularly well understood. Sleep has proven itself time and again as a memory aid: both before learning, to prepare your brain for initially making new memories, and after learning, to cement those memories and prevent forgetting.