The lifespan of a star is determined by its mass. Higher-mass stars have shorter lifespans and will eventually evolve into supernovae, while lower-mass stars like our Sun can have much longer lifespans.