About four and half billion years ago, our solar system was one big huge cloud of gas and rocks, which was slowly moving together under the influence of gravity. As the material compressed together in the centre, the surrounding gas and rocks started to form into other separate lumps. It was from these that our solar system was formed, with the central mass forming the sun and the separate lumps forming the planets which would encircle the sun. However, there was some material left over, which formed the comets and asteroids which threaten and amaze us today.