The magnetic field on the sun is created by flowing charged plasma a liquid iron core flowing charged plasma friction iron in the solar wind.
Plasma, a gas-like state of matter in which electrons and ions have separated to produce a very hot mixture of charged particles, makes up the sun. Magnetic fields are naturally produced as charged particles move, and these fields have an additional impact on the motion of the particles.
Because the magnetic fields above the surface of the sun direct the travel of that plasma and cause the loops and towers of material in the corona to shine brilliantly in EUV photos, we can see the shape of the magnetic fields there.
Learn more about Magnetic field here-
https://brainly.com/question/23096032
#SPJ4