Stars are formed from massive clouds of dust and gas that collapse under their own gravity, leading to nuclear fusion that powers them. When a star exhausts its fuel, it may explode as a supernova, sometimes leading to the formation of a black hole, a region of space with gravitational pull so strong that not even light can escape. Black holes form from remnants of massive stars, and their effects on nearby matter can be studied, although they cannot be directly observed.