Many researchers believe that the moon formed after Earth was hit by a planet the size of Mars billions of years ago. This is called the giant impact hypothesis