A galaxy is a massive, gravitationally bound system consisting of stars, gas, dust, and dark matter. Galaxies can have as many of 100 trillion stars and there are more than 170 billion galaxies in the known universe.
Our Moon was formed when Theia, a celestial body the size of Mars, collided with Earth 4.5 Billion years ago. The resulting debris formed our Moon