Dreams are created by your spirits. Sometimes they create dreams according to your feelings. Dreams are composed and caused by spirits for various reasons such as
1. As a part of the game they play with other spirits
2. To alert the person who dreams
3. To pacify the spirits which are angry with you
Still there may be some other reasons.
A human being during his lifetime is living with many spirits which have joined one by one since birth. They are knowledge, skills, feelings, emotions, interests and everything. Even thoughts are not your own. For example, when you want to take a decision on a subject, one after another the spirits think and you just listen, choose or reject the ideas which they transmit to your mind through your brain in the form of thoughts. Brain is just a media to connect the spirits to your mind. A mind is just a computer's mind. After the destruction of a computer completely you will not get it's mind. The same is the case with the human beings. Soul is nothing but an energy needed for the functionality of a body. It is not a spirit or anything else. After death all spirits which accompanied a person quit and go to different places searching new bodies. All human beings are just robots made of flesh and bones and toys of the spirits for their games.
You must always control your negative feelings. Certain spirits always induce negative feelings again and again. If you allow them to grow then one day you will be in trouble.