Nightmares that occur frequently and keep you from getting restful sleep are considered a sleep disorder. Nightmare disorder is a parasomnia, a category of sleep disorders that involves unwanted events or experiences that occur while you are falling asleep or waking up or in your sleep.