The Big Bang created massive massive dust clouds of matter which eventually formed into clusters and were gravitationally attracted to each other. They eventually clumped together to form meteorites and planets, which went on to interact with each other and develop into more organised systems that we see today.
Comments