The invention relates to a nanometer 
alloy anti-
cancer drug with functions of independent targeting and imaging, and a preparation method thereof, and belongs to the technical field of anti-
cancer drugs. The nanometer 
alloy anti-
cancer drug mainly comprises a 
metal, a 
metal compound and a 
nonmetal, wherein the 
metal comprises at least one selected from 
precious metal components such as Au, Ag, Pt, Cu, Ru, Pd, Rh, Re, Os and Ir and is named a first component, the 
nonmetal is at least one selected from 
nonmetal element components such as B, C, Si, O, S and Se and is named a second component, O exists in the form of the metal 
oxide or the hydroxyl OH or carboxyl COOH on the particle surface, S and Se exist mainly in the form of the 
sulfide or 
selenide formed from S or Se and the metal, B and Si are doped in the metal to form the 
alloy, and C exists in the form of the 
carbon allotrope, or the surface-coated organic carbon, or the metal 
carbide formed from C and the metal.