Question: which layer of earth is responsible for magnetic field
Answer: The magnetic field is generated by electric currents due to the motion of convection currents of molten iron in the Earth 's outer core driven by heat escaping from the core , a natural process called a geodynamo .