Why do People have Nightmares?

People have nightmares because of certain things that are going on or have happened in our life that is unsettling or have caused some kind of disruption. It is our subconscious coming out while we are a sleep.