
Black holes can form when a massive star dies. Stars have a lot of mass which means there is a lot of gravity pulling in on the star.
These stars are also made up of very hot gas which lets off a lot of heat. This creates a force which pushes on the star from the inside out.