Ampere is most known for establishing the relationship between electricity and magnetism , and combining them into a new field called electromagnetism , or electrodynamics . AmpÃ re 's fame mainly rests on his establishing the relations between electricity and magnetism , and in developing the science of electromagnetism , or , as he called it , electrodynamics .