The present disclosure relates to an improved method for producing ergothioneine, comprising the steps of: (a) inoculating Pleurotus ostreatus strain CGMCC No.6232 into a seed medium, and culturing it to prepare a seed liquor, wherein the seed medium uses soybean cake powder as nitrogen source; and (b) inoculating the seed liquor into a fermentation basal medium, and then culturing it to obtain a fermentation broth of Pleurotus ostreatus mycelia. Further, any one or more members selected from NH4Cl, NH4NO3, NaCl, polyethylene glycol, folic acid, vitamin B1 (VB1), indolebutyric acid, citric acid, pyruvic acid, arginine, lysine, leucine, aspartic acid, glutamic acid, betaine, histidine, cysteine, methionine, tween, span, chitosan, Fluconazole, Miconazole, Ketoconazole, ethylenediaminetetraacetic acid (EDTA), isopropyl alcohol and dimethyl sulfoxide are added into the fermentation basal medium.