The mechanical properties and crack propagation behavior of aluminum alloys, both with and without corroded surfaces, were thoroughly investigated through molecular dynamic (MD) simulations. The study delved into the effects of corrosion depth and width on the mechanical properties of corroded aluminum alloys. It was found that as the corrosion depth increases, the yield strength experiences an initial decrease followed by a subsequent increase. This can be attributed to the impact of increased corrosion depth on the healing of surface roughness, which ultimately leads to significant changes in yield strength. Furthermore, the presence of corrosion pits was identified as a key factor in regulating the local microstructure evolution within the material, leading to pronounced differences in stress distribution localization. This, in turn, influenced the path of crack propagation within the material. These findings not only contribute to a deeper understanding of the behavior of aluminum alloys under corrosion, but also provide valuable insights for the development of aluminum alloys with enhanced mechanical properties.