The treatment of controlled landfills with lime insolubilizes the heavy metals from landfill leachates, achieving an inert solid in order to avoid contamination of soils and aquifers.