According to the DSM, nightmares are generally thought to be caused by anxiety or stress; trauma or an upsetting event; sleep disorders; a fluctuating sleep schedule; or medication or drug use.