While you sleep, you consolidate memories and clear synaptic space to learn new things the next day.[12] Your body deploys the cellular equivalent of thousands of tiny hands to repair all your muscles, including your heart.[13] You stabilize your metabolism and endocrine function, the latter of which helps you regulate your emotions (i.e., you have fewer mood swings).[14]