However, at the fag end of the star's life, when the nuclear fuel of the star starts diminishing, the outward pressure starts to reduce. Consequently, the inward gravitational pull increases manifold, thereby shrinking the star inward. Eventually, the core of the star collapses and becomes a black hole.