Star Formation

Stars form in huge clouds of gas and dust called nebulae. These areas of space are sometimes known as 'stellar nurseries' or 'star forming regions'.
 
The gravity of the gas and dust in the clouds pulls everything inwards. The clouds slowly collapse onto a number of points (or cores). Deep in the centre of these cores, there is lots of dense material squashed together, and it is very hot. Eventually it is hot enough for nuclear fusion to start. Nuclear fusion is the process that powers a star. This point is called stellar ignition because it is when a star starts to shine
 

Stars are not true stars until they can fuse hydrogen into helium. Before that point, they are called protostars

The sudden burst of light made by a new star blows away much of the nearby gas cloud. However, it can leave enough material behind to form a number of planets.

After stellar ignition, the star becomes relatively stable. This happens because the inward pull of gravity is balanced by the outward pressure from nuclear fusion.

Stars shine for many millions of years but do not last for ever. A star like the Sun will shine for around 10 billion years. After formation, they go through several stages which we call the life cycle of a star.

You can see what is happening in a bit more detail in this simulation.