The invention relates to application of a 1-sulfonyl naphthol derivative in prevention and treatment of plant pathogenic fungi and an antibacterial agent, and belongs to the technical field of antibacterial agents. In the application of the 1-sulfonyl naphthol derivative, the 1-sulfonyl naphthol derivative has a structure shown as a formula I, and in the formula I, R is C1-C6 alkyl, aryl or heteroaryl, wherein the aryl is phenyl, substituent substituted phenyl or naphthyl. In the application of the 1-sulfonyl naphthol derivative of the present invention, the 1-sulfonyl naphthol derivative canbe used for detecting 16 plant pathogenic fungi such as fusarium graminearum, wheat root rot fungi, wheat stem rot fungi, magnaporthe oryzae, setosphaeria turcica, bipolaris maydis, maize curvularia leaf spot, oilseed rape sclerotinia sclerotiorum, tobacco fusarium oxysporum, phytophthora nicotianae, alternaria alternata, cotton fusarium oxysporum, cucumber fusarium oxysporum and botrytis cina, alternaria brassicae and phytophthora capsici, and shows good antibacterial activity.