In hospitalized patients, the commonest causes of acute insomnia are the effects of illness, environmental sleep disruption, medication, anxiety, and depression. Treatment should correct underlying medical disorders; reduce environmental sleep disruptions; and lower anxiety with psychological interventions, sedative or hypnotic medication, and relaxation training. Special clinical problems include chronic pain, delirium, and insomnia in the elderly.