Most of a star's lifetime is spent in the main sequence phase, where it fuses hydrogen into helium in its core. The balance between gravitational forces and the outward pressure from fusion reactions maintains the star's stability. The position of a star on the main sequence is primarily determined by its mass. More massive stars have higher core temperatures and burn through their hydrogen fuel more quickly.