Maxwell provided a sound theoretical foundation for electrodynamics. In order to describe the optical and electromagnetic phenomenon in moving bodies within the framework of classic physics, Lorentz introduced auxiliary variables for time and space in moving bodies. Einstein later explained these variables by noting that the time and distance measurements depend on the movement of the observer.
H. A. Lorentz, Attempt for a Theory of Electric and Optical Phenomena in Moving Bodies