The solar system formed 4.6 billion years ago from the collapse of a giant molecular cloud. It is located within the Milky Way galaxy, which is a spiral galaxy around 100,000 light years in diameter. The solar system consists of the Sun and objects that orbit it, including 8 official planets of which 4 are gas giants and 4 are terrestrial. Beyond the planets are the Kuiper Belt and hypothesised Oort Cloud. The nearest star to the Sun is Proxima Centauri at 4.2 light years away.