The preposition is followed by its object (and words that modify the object in the prepositional phrase). A preposition is a word that occurs before a noun/pronoun in a clause. Preposition means, pre-before and position-the object's location.
The most widely accepted scientific explanation for the formation of the Solar System is called the Solar Nebular Model. According to this model, the entire Solar System formed around 4.5 billion years ago from the gravitational collapse of a small fraction of a giant molecular cloud, also known as a nebula.
The theory of how our moon was formed lines up with this. It is believed that during the early formation of our solar system, a young Earth and an object about the size of Mars collided, sending debris into space and reforming within Earth's gravity and forming the moon.