The famous Oster experiment revealed the connection between electricity and magnetism.
Oster's experiment is like this. Put the small magnetic needle under a straight wire, make it parallel to the wire, close the switch and turn on the direct current. It is found that the small magnetic needle deflects, which changes the current direction in the wire and changes the deflection direction of the small magnetic needle.