Magnesium (Mg) is the lightest structural metallic material with high specific strength. Mg alloys are highly expected to be applied in electronic, automotive vehicles and aerospace, etc. The most severe drawback of Mg and its alloys is corrosion susceptibility. When Mg alloys are used in chloride solutions, filiform corrosion sometimes occur. Being a common practice in the research of Mg corrosion, galvanostatic tests allow for easy comparison of the rate of hydrogen evolution with the applied current. But there are scarce studies reported about the in situ observation of filiform corrosion behavior of Mg alloys under galvanostatic polarization. The purpose of this study is to elucidate the growth of filiform corrosion of AZ91D Mg alloy in NaCl solutions by in situ observation.An ingot of AZ91D die-cast was cut into 25 mm × 30 mm × 5 mm sheets. The specimen surface was polished to 2000 grit with SiC paper and finished with a 0.25 µm diamond paste, followed by ultrasonically cleaning in ethanol. To confirm the metallographic structures, the sample was etched with a mixed reagent of 3 mL HNO3 and 80 mL of ethanol for 3 s. Galvanostatic polarization was performed using a micro electrochemical system with an in situ observation function. The electrolytes used were naturally aerated 0.1 M and 0.01 M NaCl (pH 8.0, adjusted with NaOH). The area of the electrode was about 0.01 mm2 or larger, the surfaces of the sample was covered with a silicone sealant except for the working electrode area. To start the experiments, an objective lens was put down to be immersed in the solution and clear view of the electrode area was attempted to obtain. After polarization, the specimen surface was assessed using OM, AES, FE-SEM and STEM.The AZ91D die-cast Mg alloys mainly consist of an α phase matrix (Mg solid solution) and β phases (Mg17Al12 intermetallic compounds). Lamellar (α + β) structures are also observed in the adjacent of β phases. Among these lamellar structures, some black dots are Mg-Al-Mn compounds. In the video of corrosion process, pits were observed in the boundaries of lamellar (α + β) structures and β phases. After polarization, EDS maps were taken. It was confirmed that filiform corrosion propagated in lamellar (α + β) structures and α phase matrix.