Graphite-fiber-reinforced aluminum composites (Gr f /Al) with different magnesium content were fabricated with the pressure infiltration method. Their corrosion behaviors were investigated by potentiodynamic polarization measurements, immersion tests, electrochemical impedance spectroscopy (EIS) analysis, and scanning electron microscopy (SEM). Both the corrosion potential (E corr ) and the pitting potential (E pit ) decreased with the increase of magnesium content, whereas the corrosion current density (i corr ) decreased sharply at first and then increased slightly. The i corr of Gr f /Al-3.2Mg was the lowest among the four composites with different magnesium contents, which indicated that Gr f /Al-3.2Mg had the best corrosion resistance. EIS showed that the capacitive reactance of Gr f /Al-8.5Mg was 1682 X 9 cm À2 , which was the worst, whereas that of Gr f /Al-3.2Mg was 3498 X 9 cm À2 , which was the best. SEM results revealed that magnesium and silicon formed the Mg 2 Si phase in Gr f /Al-3.2Mg, which hindered the extension of corrosion crack and improved the corrosion resistance.