Nonstoichiometric Zinc oxide (ZnO) nanorod arrays doped Co or Ni can be easily obtained by calicining soaked ZnO nanorod arrays. More importantly, the nonstoichiometric doped ZnO nanoarrays have more effective antimicrobial than pure ZnO nanoarrays, which means we can obtain a kind of promising new effective functional nanomaterials.