Magnetic perturbations on ground at high latitudes are directly associated only with the divergence-free component of the height-integrated horizontal ionospheric current, J⊥,df. Here we show how J⊥,df can be expressed as the total horizontal current J⊥ minus its curl-free component, the latter being completely determined by the global Birkeland current pattern. Thus, in regions where J⊥=0, the global Birkeland current distribution alone determines the local magnetic perturbation. We show with observations from ground and space that in the polar cap, the ground magnetic field perturbations tend to align with the Birkeland current contribution in darkness but not in sunlight. We also show that in sunlight, the magnetic perturbations are typically such that the equivalent overhead current is antiparallel to the convection, indicating that the Hall current system dominates. Thus, the ground magnetic field in the polar cap relates to different current systems in sunlight and in darkness.