Gravity. When a dying star of sufficient mass is no longer to support nuclear reactions in its core, it loses the pressure in the core that supports the entire star. Since there is now nothing to counter its own gravity, the entire star implodes until it becomes either a neutron star or, if its mass is large enough, a black hole.