The Bible offers numerous interpretations of dreams, varying from warnings or prophecy, to encouragement and direction from God. In the Old Testament, God used dreams to communicate with Kings and leaders through prophets. Though not frequently, dreams also appear in the New Testament.
Particularly in the Old Testament, God often communicated via prophecy, or through prophets. In the book of Daniel, the prophet Daniel was able to forsee the future of Israel based on visions he had in dreams. He also interpreted dreams for King Nebuchadnezzar.
God also utilized dreams to encourage believers in dire situations. In Judges 7, Gideon faced a superior army. However, following a vision of an enemy soldier's dream, Gideon was able to win the battle even with an undermanned army.
Dreams can also provide instructions or direction. In Matthew 1 and 2, Joseph remained with Mary through her pregnancy following a dream in which an angel spoke to him. Later, he later saved his family by following instructions to flee to Egypt.
Finally, dreams can operate as warnings of danger or disaster. Abimelech was warned in a dream not to touch Sarah, Abraham’s wife in Genesis 20. Abimelech returned Sarah to her husband without harming her, and Sarah later became the mother of God's chosen people.