Both Genesis and the Enuma Elish describe the earth as being formed from out of chaos and into order. The giant impact hypothesis of 1975 states that the moon is a byproduct of a massive impact of the earth and another giant body called Theia. It’s a crazy idea, but there’s actually some supporting evidence.
Most theologians today consider the first chapter of Genesis to be a response to the Babylonian creation epic called the Enuma Elish. Both accounts are concerned with the conquest of order over chaos. The Enuma Elish begins with “When on high,” and Genesis begins similarly, although with a unique Hebrew spin, with “In the beginning.”