The life cycle of a star depends upon its mass.
Mass is the primary factor that determines how a star evolves over time, including its lifespan, the nuclear processes it undergoes, and its end stages (such as supernova, neutron star, or black hole formation).