The invention discloses a method for producing heavy metal passivators for farmland soil and application of the heavy metal passivators, and belongs to the field of environmental protection. The method includes steps of adding calcium polysulfide, potassium sulfide, potassium dihydrogen phosphate, sodium lignosulfonate, potassium humate, bentonite and quicklime into a suspending machine, stirringthe calcium polysulfide, the potassium sulfide, the potassium dihydrogen phosphate, the sodium lignosulfonate, the potassium humate, the bentonite and the quicklime and uniformly mixing the calcium polysulfide, the potassium sulfide, the potassium dihydrogen phosphate, the sodium lignosulfonate, the potassium humate, the bentonite and the quicklime with one another to obtain first mixtures; transferring the first mixtures into a ball mill and smashing the first mixtures; adding sodium silicate and EDTA (ethylene diamine tetraacetic acid) into the first mixtures and uniformly stirring the sodium silicate, the EDTA and the first mixtures. The method and the application have the advantages that the heavy metal passivators which are mixtures can be added into the soil contaminated by differenttypes of heavy metal, accordingly, the different types of heavy metal in the soil can be immobilized and passivated and can be turned into insoluble metal salt or alkali, and the activity, the mobility and the bioavailability of the heavy metal in the soil can be deteriorated to a great extent; contamination of the soil due to the different types of heavy metal can be abated, accordingly, the soil productivity and underground water can be protected, and the food safety can be guaranteed.