Magnetism and electricity involve the attraction and repulsion between charged particles and the forces exerted by these charges. The interaction between magnetism and electricity is called electromagnetism. The movement of a magnet can generate electricity. The flow of electricity can generate a magnetic field.