This is an artist's drawing of the process that creates alternating magnetic bands in the crust of a planet. The red in the picture is north and blue is south.
Courtesy of NASA