Stars die (how do stars die) – Star Formation – The distribution of matter and energy was not even in the early universe. These initial density differences gave rise to differences in gravitational forces and it caused the matter to get drawn together. These formed the bases for development of galaxies. A galaxy contains a large number of stars. Galaxies spread over vast distances that are measured in thousands of light-years. The diameters of individual galaxies range from 80,000-150,000 light years. A galaxy starts to form by accumulation of hydrogen gas in the form of a very large cloud called nebula. Eventually, growing nebula develops localised clumps of gas. These clumps continue to grow into even denser gaseous bodies, giving rise to formation of stars. The formation of stars is believed to have taken place some 5-6 billion years ago.