Generally speaking, ancient civilisations thought dreams were messages from the gods (see the works of Homer) or alternatively some kind of prophecy. However, they knew that often dreams misled the dreamer, and invented various explanations for this. Aristotle started off with ideas like this, but later became more skeptical, and denied the divine origin of dreams.