The invention relates to the technical field of fertilizers, in particular to a fertilizer for mercury polluted soil. The fertilizer comprises, by weight, 25-30 parts of urea, 15-20 parts of potassium sulfate, 25-30 parts of urea phosphate, 10-15 parts of calcium nitrate, 10-15 parts of calcium chloride, 8-13 parts of gypsum, 6-9 parts of sodium selenite, 4-7 parts of zinc sulfate, 3-5 parts of ammonium molybdate, 10-15 parts of Chinese medicine residues, 15-20 parts of plant extract, 15-20 parts of modified calcium hydroxide and 10-15 parts of modified bentonite. The fertilizer is rich in nutrients, the total nutrient content of nitrogen, phosphorus and potassium is larger than or equal to 58.9%, the rate of changing an effective state into an ineffective state serves as a soil restoration evaluation index, the conversion rate of mercury metal in the soil reaches 96.1% or more, take Chinese cabbages as an example, yield can be increased by 12.6-12.9%, and double benefits of high yield and soil heavy mental restoration are achieved.