Greek mythology begins with the Creation Myth, which is contained within many different sources of ancient Greek texts. The most complete one is Theogony from the Greek poet Hesiod, who lived around the 8th century BCE. Hesiod combines all Greek myths and traditions to create this mythical cosmogony.
According to Theogony, in the beginning only chaos and void existed throughout the entire universe (The Greek word chaos does not have the same meaning in which it is used today, but simply meant empty space or a dark void.).
Chaos was followed by Gaia (which means earth) and Eros (which is love). It is not specified if Gaia and Eros were born from Chaos or whether they were pre-existing; however, Hesiod mentions that Gaia (Earth) came into existence in order to become the home of the gods. This is similar to other myths, like Sumerian myths, which describe how the earth was initially created for the gods to dwell.
Chaos also gave birth to Erebus, who was the darkness of the underworld, and Nyx (night).