Ancient Near Eastern (ANE) cosmology refers to the plurality of cosmological beliefs in the Ancient Near East, covering the period from the 4th millennium BC to the formation of the Macedonian Empire by Alexander the Great in the second half of the 1st millennium BC. These beliefs include the Mesopotamian cosmologies from Babylonia, Sumer, and Akkad; the Levantine or West Semitic cosmologies from Ugarit and ancient Israel and Judah (the biblical cosmology); the Egyptian cosmology from Ancient Egypt; and the Anatolian cosmologies from the Hittites. This system of cosmology went on to have a profound influence on views in early Greek cosmology, later Jewish cosmology, patristic cosmology, and Islamic cosmology (including Quranic cosmology). Until the modern era, variations of ancient near eastern cosmology survived with Hellenistic cosmology as the main competing system.
Summary.
Ancient near eastern cosmology can be divided into its cosmography, the physical structure and features of the cosmos; and cosmogony, the creation myths that describe the origins of the cosmos in the texts and traditions of the ancient near eastern world. The cosmos and the gods were also related, as cosmic bodies like heaven, earth, the stars were believed to be and/or personified as gods, and the sizes of the gods were frequently described as being of cosmic proportions. 
Cosmography.
Ancient near eastern civilizations held to a fairly uniform conception of cosmography. This cosmography remained remarkably stable in the context of the expansiveness and longevity of the ancient near east, but changes were also to occur. Widely held components of ancient near eastern cosmography included: 
Keyser, categorizing ancient near eastern cosmology as belonging to a larger and more cross-cultural set of cosmologies he describes as a "cradle cosmology," offers a longer list of shared features. Some cosmographical features have been misattributed to Mesopotamian cosmologies, including the idea that ziggurats represented cosmic objects reaching up to heaven or the idea of a dome- or vault-shaped (as opposed to a flat) firmament. 
Another controversy concerns if the ancient near eastern cosmography was purely observational or phenomenological. However, a number of lines of evidence, including descriptions from the cosmological texts themselves, presumptions of this cosmography in non-cosmological texts (like incantations), anthropological studies of contemporary primitive cosmologies, and cognitive expectations that humans construct mental models to explain observation, support that the ancient near eastern cosmography was not phenomenological.
Cosmogony.
Ancient near eastern cosmogony also included a number of common features that are present in most if not all creation myths from the ancient near east. Widespread features included: 
Lisman uses the broader category of "Beginnings" to encompass three separate though inter-related categories: the beginning of the cosmos (cosmogony), the beginning of the gods (theogony), and the beginning of humankind (anthropogeny).
There is evidence that Mesopotamian creation myths reached as far as Pre-Islamic Arabia.
Structure of the cosmos.
Overview of the whole cosmos.
The Mesopotamian cosmos can be imagined along a vertical axis, with parallel planes of existence layered above each other. The uppermost plane of existence was heaven, being the residence of the god of the sky Anu. Immediately below heaven was the atmosphere. The atmosphere extended from the bottom of heaven (or the lowermost firmament) to the ground. This region was inhabited by Enlil, who was also the king of the gods in Sumerian mythology. The cosmic ocean below the ground was the next plane of existence, and this was the domain of the sibling deities Enki and Ninhursag. The lowest plane of existence was the underworld. Other deities inhabited these planes of existence even if they did not reign over them, such as the sun and moon gods. In later Babylonian accounts, the god Marduk alone ascends to the top rank of the pantheon and rules over all domains of the cosmos. The three-tiered cosmos (sky-earth-underworld) is found in Egyptian artwork on coffin lids and burial chambers.
Descriptions.
A variety of terms or phrases were used to refer to the cosmos as a whole, acting as rough equivalents to contemporary terms like "cosmos" or "universe". This included phrases like "heaven and earth" or "heaven and underworld". Terms like "all" or "totality" similarly connoted the entire universe. These motifs are found in temple hymns and royal inscriptions located in temples. The temples symbolized cosmic structures that reached heaven at their height and the underworld at their depths/foundations. Surviving evidence does not specify the exact physical bounds of the cosmos or what lies beyond the region described in the texts.
Three heavens and earths.
In Mesopotamian cosmology, heaven and earth both had a tripartite structure: a Lower Heaven/Earth, a Middle Heaven/Earth, and an Upper Heaven/Earth. The Upper Earth was where humans existed. Middle Earth, corresponding to the Abzu (primeval underworldly ocean), was the residence of the god Enki. Lower Earth, the Mesopotamian underworld, was where the 600 Anunnaki gods lived, associated with the land of the dead ruled by Nergal. As for the heavens: the highest level was populated by 300 Igigi (great gods), the middle heaven belonged to the Igigi and also contained Marduk's throne, and the lower heaven was where the stars and constellations were inscribed into. The extent of the Babylonian universe therefore corresponded to a total of six layers spanning across heaven and Earth. Notions of the plurality of heaven and earth are no later than the 2nd millennium BC and may be elaborations of earlier and simpler cosmographies. One text (KAR 307) describes the cosmos in the following manner, with each of the three floors of heaven being made of a different type of stone:30 “The Upper Heavens are Luludānītu stone. They belong to Anu. He (i.e. Marduk) settled the 300 Igigū (gods) inside. 31 The Middle Heavens are Saggilmud stone. They belong to the Igīgū (gods). Bēl (i.e. Marduk) sat on the high throne within, 32 the lapis lazuli sanctuary. And made a lamp? of electrum shine inside (it). 33 The Lower Heavens are jasper. They belong to the stars. He drew the constellations of the gods on them. 34 In the … …. of the Upper Earth, he lay down the spirits of mankind. 35 [In the …] of the Middle earth, he settled Ea, his father. 36 […..] . He did not let the rebellion be forgotten. 37 [In the … of the Lowe]r earth, he shut inside 600 Anunnaki. 38 […….] … […. in]side jasper. Another text (AO 8196) offers a slightly different arrangement, with the Igigi in the upper heaven instead of the middle heaven, and with Bel placed in the middle heaven. Both agree on the placement of the stars in the lower heaven. Exodus 24:9–10 identifies the floor of heaven as being like sapphire, which may correspond to the blue lapis lazuli floor in KAR 307, chosen potentially for its correspondence to the visible color of the sky. One hypothesis holds that the belief that the firmament is made of stone (or a metal, such as iron in Egyptian texts) arises from the observation that meteorites, which are composed of this substance, fall from the firmament.
Seven heavens and earths.
Some texts describe seven heavens and seven earths, but within the Mesopotamian context, this is likely to refer to a totality of the cosmos with some sort of magical or numerological significance, as opposed to a description of the structural number of heavens and Earth. Israelite texts do not mention the notion of seven heavens or earths.
Unity of the cosmos.
Mythical bonds, akin to ropes or cables, played the role of cohesively holding the entire world and all its layers of heaven and Earth together. These are sometimes called the "bonds of heaven and earth". They can be referred to with terminology like "durmāhu" (typically referring to a strong rope made of reeds), "markaṣu" (referring to a rope or cable, of a boat, for example), or "ṣerretu" (lead-rope passed through an animals nose). A deity can hold these ropes as a symbol of their authority, such as the goddess Ishtar "who holds the connecting link of all heaven and earth (or netherworld)". This motif extended to descriptions of great cities like Babylon which was called the "bond of [all] the lands," or Nippur which was "bond of heaven and earth," and some temples as well.
Center of the cosmos.
The idea of a center to the cosmos played a role in elevating the status of whichever place was chosen as the cosmic center and in reflecting beliefs of the finite and closed nature of the cosmos. Babylon was described as the center of the Babylonian cosmos. In parallel, Jerusalem became "the navel of the earth" (Ezekiel 38:12). The finite nature of the cosmos was also suggested to the ancients by the periodic and regular movements of the heavenly bodies in the visible vicinity of the Earth.
Firmament.
The firmament was believed to be a solid boundary above the Earth, separating it from the upper or celestial waters. In the Book of Genesis, it is called the "raqia". In ancient Egyptian texts, and from texts across the near east generally, the firmament was described as having special doors or gateways on the eastern and western horizons to allow for the passage of heavenly bodies during their daily journeys. These were known as the windows of heaven or the gates of heaven. Canaanite text describe Baal as exerting his control over the world by controlling the passage of rainwater through the heavenly windows in the firmament. In Egyptian texts particularly, these gates also served as conduits between the earthly and heavenly realms for which righteous people could ascend. The gateways could be blocked by gates to prevent entry by the deceased as well. As such, funerary texts included prayers enlisting the help of the gods to enable the safe ascent of the dead. Ascent to the celestial realm could also be done by a celestial ladder made by the gods. Multiple stories exist in Mesopotamian texts whereby certain figures ascend to the celestial realm and are given the secrets of the gods.
Four different Egyptian models of the firmament and/or the heavenly realm are known. One model was that it was the shape of a bird: the firmament above represented the underside of a flying falcon, with the sun and moon representing its eyes, and its flapping causing the wind that humans experience. The second was a cow, as per the Book of the Heavenly Cow. The cosmos is a giant celestial cow represented by the goddess Nut or Hathor. The cow consumed the sun in the evening and rebirthed it in the next morning. The third is a celestial woman, also represented by Nut. The heavenly bodies would travel across her body from east to west. The midriff of Nut was supported by Shu (the air god) and Geb (the earth god) lay outstretched between the arms and feet of Nut. Nut consumes the celestial bodies from the west and gives birth to them again in the following morning. The stars are inscribed across the belly of Nut and one needs to identify with one of them, or a constellation, in order to join them after death. The fourth model was a flat (or slightly convex) celestial plane which, depending on the text, was thought to be supported in various ways: by pillars, staves, scepters, or mountains at the extreme ends of the Earth. The four supports give rise to the motif of the "four corners of the world".
Earth.
Topography of the earth.
The ancient near eastern earth was a single-continent disk resting on a body of water sometimes compared to a raft. An aerial view of the cosmography of the earth is pictorially elucidated by the Babylonian Map of the World. Here, the city Babylon is near the Earth's center and it is on the Euphrates river. Other kingdoms and cities surround it. The north is covered by an enormous mountain range, akin to a wall. This mountain range was traversed in some hero myths, such as the Epic of Gilgamesh where Gilgamesh travels past it to an area only accessible by gods and other great heroes. The furthest and most remote parts of the earth were believed to be inhabited by fantastic creatures. In the Babylonian Map, the world continent is surrounded by a bitter salt-water Ocean (called "marratu", or "salt-sea") akin to Oceanus described by the poetry of Homer and Hesiod in early Greek cosmology, as well as the statement in the "Bilingual Creation of the World by