What is the main sequence of a star?

The main sequence of a star is a phase in its life cycle where a star is primarily fusing hydrogen into helium in its core. This is the longest phase in a star's life where it maintains a stable energy output by balancing the inward force of gravity with the outward force of nuclear fusion. Stars spend the majority of their life on the main sequence before eventually evolving into different phases based on their mass and size.