Main Sequence Fitting (or Cluster Fitting) is is the determination of the distance to a cluster of stars through matching Spectrography or Color Index to the H-R Diagram (HRD). The goal is to determine the Absolute Magnitude (M) of the stars, and through that, Stellar Distance Determination. It is much like Spectroscopic Parallax, but by by applying it to a number of stars, accuracy is better since random errors can be averaged and outliers can be noted and handled appropriately.
The cluster is presumed to have been formed by a single Molecular Cloud, formed around the same time, with the same Metallicity (Z), and remaining in the region of their formation. Once reasonable estimates of distance and absolute Magnitude are determined, they provide observation targets for study of stars and calibration of other methods of stellar distance determination.