Stars form in dense regions of molecular clouds, where gravity causes gas and dust to collapse into a protostar. Once nuclear fusion ignites in the core, a star enters its main sequence phase, burning hydrogen into helium. Over time, as hydrogen depletes, the star evolves based on its mass. Low-mass stars become red giants and eventually white dwarfs, while massive stars undergo supernova explosions, leaving behind neutron stars or black holes. Studying stellar life cycles provides insights into the universe's structure and element formation.