Earth’s magnetic field is generated by an interaction between rotation in the planet’s core and electrical currents.The field then creates the magnetosphere, which acts sort of like a force field, protecting the planet from the brunt of the sun's solar wind.arth’s magnetic field is generated by an interaction between rotation in the planet’s core and electrical currents.