A black hole begins to form as an aging star abruptly collapses when it ceases to undergo nuclear fusion. This occurs after the star has consumed its component elements in this order: Hydrogen, Helium, Carbon, Neon, Oxygen, and finally Iron.
Once the star's core has produced iron, it can no longer generate energy through fusion, leading to gravitational collapse and potentially forming a black hole if the remaining mass is sufficient.