The investigation highlights the serious heavy metal pollution of agricultural soil and compost from waste sites, which poses threats to crop development and food safety. Important discoveries in compost from waste sites included high quantities of Cd, Cr, Cu, Mn, Ni, Pb, and Zn, all of which were over the limits specified by Directive 2014/118/EU. Nonetheless, the levels of Cr, Mn, and Fe were within allowable bounds. In contrast, lower quantities of all heavy metals were found in soil intended for agriculture as opposed to compost from a waste.