Inadequate waste management and illegal trash dumping continue to be the leading causes of severe environmental pollution. Human exposure to harmful heavy metals has emerged as a serious health concern on the continent. Some people in Alice, a small town, grow their food in home gardens. They use animal manure and compost derived from soil obtained from landfills to enhance the fertility of the garden soil. Heavy metal heaps in garbage disposals are constantly present, releasing dangerous amounts of metal into the environment. The harmful effects of heavy metals on plants lead to unsanitary conditions and environmental problems. Animals and people who consume these vegetables may also be at risk for health problems. Assessing the soil’s enzyme activity can potentially lessen the negative effects of the accumulated pollutants and improve the soil’s overall health and quality. Soil enzymes are biologically active components that have a catalytic impact and are released from root exudates, crop residues, and animal remains. The activity of enzymes serves as an excellent bioindicator of soil cleanliness and quality because they are sensitive to heavy metals. X-ray diffraction (XRD) was used to quantify the mineral elements in soil using 40 kV parallel beam optics, 30 mA, and CuKα radiation. Meanwhile, the activity of the enzyme was essayed in different coupled substrates. Thirteen (13) clay minerals were found, including Talc 2M, Kaolinite 2M, and Chlorite Lawsonite Muscovite 2M1. The detected trace elements have high concentration levels that exceed the World Health Organization’s (WHO) allowed levels. The identified elements affected the enzyme activity at different levels. The Mn, Al, Si, V, Ti, and Ca negatively affect soil enzyme activity, specifically invertase (INV). However, the amount of Mg, K, Fe, and Zn showed a slightly positive effect on the same enzyme (INV). According to this view, these elements come from several sources, each with a particular impact on soil contamination and enzyme activity. High levels of heavy metals in this study may be due to improper waste disposal, limited recycling opportunities, lack of public awareness, and inadequate enforcement of waste management regulations. It is essential to employ Fourth Industrial Revolution (4IR) technologies, correct disposal techniques, suitable agricultural methods, preventive regulations, and efficient waste management to mitigate the negative effects of heavy metals on the environment.