In Morocco, numerous regions face water scarcity. To address water shortages in the arid Marrakech region, agricultural reuse of wastewater can be a viable solution, provided that accessible and cost-effective methods, such as slow sand filtration, are employed to reduce pollutant levels. In the vicinity of the Mine Draa Lasfar, wastewater discharged into the Tensift River has led to significant contamination by metallic trace elements, including lead (Pb). This contamination spreads from the water to the soil, plant cover, and living organisms, with severe Pb contamination observed in children, leading to serious neurological diseases. Addressing this critical issue, our study explores the application of slow sand filtration for water treatment. This method is reliable and environmentally friendly, particularly effective at lower water velocities, ensuring optimal contaminant removal. We introduced the Generalized Richards model, a versatile mathematical tool, which outperformed the standard logistic model by providing a more accurate fit to our experimental data. In conclusion, slow sand filtration, when implemented in areas like Mine Draa Lasfar, offers a promising solution for mitigating metallic trace elements contamination in water sources, with the Generalized Richards model enhancing our understanding and optimization of the filtration process.