The CMS collaboration at the Large Hadron Collider (LHC) has performed the most accurate ever measurement of the mass of the top quark--the heaviest known elementary particle. The latest CMS result estimates the value of the top-quark mass with an accuracy of about 0.22%. The substantial gain in accuracy comes from new analysis methods and improved procedures to consistently and simultaneously treat different uncertainties in the measurement.