The invention discloses an anodic oxidation antibacterial metal part and a preparation method thereof. The anodic oxidation antibacterial metal part comprises a metal piece substrate, an anodic oxidation film, a nano-silver dyeing layer and a nano-silver hole sealing layer, and the anodic oxidation film is obtained by conducting anodic oxidation on the metal piece substrate; the nano-silver dyeing layer is obtained by loading a nano-silver dyeing agent on the anodic oxide film, the nano-silver hole sealing layer is obtained by loading a nano-silver hole sealing agent on the dyeing layer, in the nano-silver dyeing agent and the nano-silver hole sealing agent, the proportion of nano-silver particle antibacterial liquid is 0.01-3%, and the size of nano-silver particles is 0.1-30 nm. The anodic oxidation antibacterial metal part has the advantages of lasting antibacterial and antiviral properties, wear resistance, corrosion resistance, decoration and the like, and in addition, the preparation method of the anodic oxidation antibacterial metal part is simple in process, safe, environmental-friendly, low in cost and suitable for large-scale industrial production and market application.