The Hanle effect in the 3s2 1S0–3s4p1P1 (2026 Å) transition of Mg I has been studied over a range of densities. The low density observations lead to an accurate lifetime measurement of the 4p1P1 excited level. Related oscillator strengths are calculated.