Many people experience problems sleeping including not getting enough sleep, not feeling rested and not sleeping well. This problem can lead to difficulties functioning during the daytime and have unpleasant effects on your work, social and family life. Problems sleeping can be secondary to a medical illness such as sleep apnea, or a mental health condition like depression. Sleep issues can be a sign of an impending condition such as bipolar disorder. In addition to affecting sleep itself, many medical and mental health conditions can be worsened by sleep-related problems.