Nightmares can be triggered by various factors, including stress, anxiety, sleep deprivation, and even certain medications. Other common causes include significant life changes, such as starting school or moving to a new home, as well as exposure to scary stories, movies, or even overhearing conversations about frightening events.