The invention discloses a galvanized layer chromium-free passivating agent and a preparation method thereof. The passivating agent comprises the following components: sodium hydrogen sulfate, sodium tripolyphosphate, sodium alkyl benzene sulfonate, ammonium acetate, alumina, starch, thiourea, dicyclohexylamine nitrite, methyl cellulose, methylparaben, ethylene glycol monostearate and deionized water. The preparation method includes: adding sodium hydrogen sulfate, sodium tripolyphosphate, sodium alkyl benzene sulfonate, ammonium acetate, and thiourea into the deionized water, stirring and mixing the materials evenly at room temperature to obtain a mixed solution 1; adding alumina, starch, dicyclohexylamine nitrite, methyl cellulose, methylparaben and ethylene glycol monostearate into ethanol absolute, subjecting ethanol to heating refluxing, and conducting filtering to obtain a solid mixture, and performing drying to obtain an intermediate 1; then adding the intermediate 1 into the mixed solution 1 obtained in step two, and conducting stirring mixing under a vacuum heating condition, thus obtaining the galvanized layer chromium-free passivating agent. The galvanized layer chromium-free passivating agent provided by the invention has excellent corrosion resistance.