The magnetic field of the Earth is not strictly perpendicular to the surface at any specific location. However, at the magnetic poles, which are not the same as the geographic North and South Poles, the magnetic field lines are nearly perpendicular to the Earth's surface.