The magnetic field lines are denser near the poles of a magnet.
Earth's magnetic field lines are parallel to earth surface near magnetic poles and normal to earth surface near magnetic equator:-