Electric and magnetic fields are two different manifestations of electromagnetism. Electric force fields are caused by positive and negative charges carried by particles like protons and electrons. Magnetic force fields are caused by charges in motion.
Sunspots have strong magnetic fields.
More often than not, sunspots come in pairs. One spot is the North magnetic pole, the other is the South. Scientists can trace the magnetic fields of sunspots using a device called a magnetograph. Magnetic fields act a bit like rubber bands. When you stretch or twist them they can snap back violently.