The effects of SO_2 on the initial atmospheric corrosion of AZ91D magnesiumalloy were investigated in laboratory. Met-allographic observation, SEM (Scanning ElectronMicroscopy), XRD (X-ray Diffraction) and XPS (X-ray Proton Spectrograph) were used to analyze anddiscuss the initial surface morphology of corrosion layers and corrosion products. The corrosionrate of the alloy increases with increasing the content of SO_2. The initial attack has thecharacteristics of localized corrosion and preferentially concentrates on a phase. MgO and Mg(OH)_2form at first, which provide a protective layer, then the existence of SO_2 decreases the pH of thethin solution on the alloy, accelerates dissolution process, and promotes the formation of MgSO_3centre dot 6H_2O and MgSO_4 centre dot 6H_2O, meanwhile cracks were found on the corrosion productswith corrosion continuation. These soluble corrosion products and the cracks provide the paths forfiltering oxygen and corrosion pollutants into the matrix, which results in severe localizedcorrosion and the loss of protective function of film.