Here is the full text:Einstein tells what motivated him in the opening paragraph of his 1905 paper that became known as Special Relativity:
It is known that Maxwell's electrodynamicsโas usually understood at the present timeโwhen applied to moving bodies, leads to asymmetries which do not appear to be inherent in the phenomena.