A magnetic field is an invisible force field created by moving electric charges or magnetic materials. Earth itself has a magnetic field that protects us from harmful solar particles. These field lines show the direction and strength of the magnetic force, flowing from the North pole to the South pole.