Main-sequence fitting is a technique used in astronomy to determine the properties of stars, such as their mass, age, and chemical composition, by comparing their observed characteristics to theoretical models of stellar evolution along the main sequence of the Hertzsprung-Russell diagram.