We used to think that energy and mass were conserved independently, and for many practical purposes we still consider them so conserved. But Einstein united the two with the famous equation