Black holes are formed when a massive star runs out of fuel and collapses under its own gravity during a supernova explosion. This collapse causes the core of the star to condense into a singularity, creating a region of space with such intense gravitational force that not even light can escape. This is what we call a black hole.