5 or 6 billion years ago a gigantic, disc-shaped interstellar cloud of gases and dust was spinning in the galaxy and the gravity concentrated more mass at the center of the disc which forms the sun. In regularly spaced eddies in the spinning cloud, the cold planetesimals, dust and gases concentrated to form the protoplanets