The present invention aims to provide an agent for inhibiting biocorrosion of a metal, which shows high environmental and occupational safety.;An agent for inhibiting biocorrosion of a metal, comprising 1,9-nonanedial and/or 2-methyl-1,8-octanedial as an active ingredient.