The Richter scale measures the magnitude of an earthquake based on the amplitude of seismic waves recorded by seismographs.