Insomnia is a serious medical situation that can harm your health and your everyday life. It can cause daytime sleepiness and a lack of energy. It also can make you feel anxious, depressed, or irritable. You may have trouble focusing on tasks, paying attention, learning, and remembering. These problems can prevent you from doing your best at work or school.