After the big bang 4.6 billion years ago, rocky materials came together. They were extremely hot. Over time they cooled down. soon after another Earth sized rock collided with the earth, Breaking off a large chunk. This chunk became what we know today as the moon.
Hope I helped!
~ Zoe