The solar dynamo is the physical process that generates the Sun's magnetic field. A dynamo, essentially a naturally occurring electric generator in the Sun's interior, produces electric currents and a magnetic field, following the laws of Ampère, Faraday and Ohm, as well as the laws of hydrodynamics, which together form the laws of magnetohydrodynamics. The detailed mechanism of the solar dynamo is not known and is the subject of current research.