A common type of black hole is the type produced by some dying stars. A star with a mass greater than 20 times the mass of our Sun may produce a black hole at the end of its life. In the normal life of a star there is a constant tug of war between gravity pulling in and pressure pushing out. Nuclear reactions in the core of the star produce enough energy to push outward. For most of a star's life, gravity and pressure balance each other exactly, and so the star is stable. However, when a star runs out of nuclear fuel, gravity gets the upper hand and the material in the core is compressed even further. The more massive the core of the star, the greater the force of gravity that compresses the material, collapsing it under its own weight. For small stars, when the nuclear fuel is exhausted and there are no more nuclear reactions to fight gravity, the repulsive forces among electrons within the star eventually create enough pressure to halt further gravitational collapse. The star then cools and dies peacefully. This type of star is called the "white dwarf." When a very massive star exhausts its nuclear fuel it explodes as a supernova. The outer parts of the star are expelled violently into space, while the core completely collapses under its own weight.