Stars are giant balls of gas that produce light and heat through nuclear fusion at their cores. They vary greatly in size, from dwarf stars like our Sun to massive supergiant stars over 200 times the Sun's diameter. Stars end their lives in different ways depending on their mass - smaller stars become white dwarfs, while larger stars explode as supernovae or collapse into neutron stars and other compact objects.