The invention relates to a method for improving the corrosion resistance and fatigue resistance of an aluminum alloy, comprising: shot peening, determining the depth of a residual compressive stress layer, cleaning, alkali corrosion, pickling, anodizing, and sealing, wherein, after determining the residual compressive stress In the layer depth step, based on the relationship between the shot peening intensity parameter and the residual compressive stress layer depth, the residual compressive stress layer depth Ds is obtained from the preset shot peening intensity parameter. In the alkali corrosion step, according to the alkali corrosion depth Dc and There is an optimal coefficient Y between the depths of the residual compressive stress layer Ds, and the alkali corrosion depth is determined as Dc=Y·Ds. According to the corresponding relationship between the alkali corrosion depth Dc and the alkali corrosion time t, the linear fitting curve Dc=f(t) is established, The corresponding corrosion time is calculated from the depth Ds of the residual compressive stress layer. The method can effectively improve the surface treatment performance of aluminum alloy parts, improve the comprehensive performance of the parts, and then improve the quality and performance of equipment, and has great economic and social benefits.