Electrical currents are able to influence other electrical currents, and this force is called magnetism. Permanent magnets are materials in which this magnetic effect occurs because of the natural movement of electrons. Magnetism can also be caused by the flow of an electrical current through wires. The magnetic force of a magnet can repel (push) or attract (pull) another magnet or magnetic material.

Picture credit: google