Visualization of the Suns magnetic field Like on Earth, the Suns magnetic field arises from the rotation of electrically conducting material in its interior. The difference is that in the Earth it is molten iron, while in the Sun it is ionized gas. 1.3K views18:00