This study investigated the treatment efficiency of Moringa oleifera Lam. vegetated constructed wetlands (CWs) to treat domestic wastewater with a case study of real wastewater from Al-Habil wastewater treatment plant, Luxor governate, Egypt. A total of four CW systems were designed using different types of media: sand (S-CWs), gravel (G-CWs), pottery waste-based (PW-CWs), and ceramic waste-based (CW-CWs). The systems were tested at different hydraulic retention times (HRTs) of 15, 7, 5, and 1 day to study the influence of media type and HRT on the pollutant removal efficiency, in addition to the growth of plants. The results revealed that CW-CWs demonstrated the highest treatment efficiency. In addition, decreasing HRT from 15 to 1 day consistently declined pollutant removal across all systems. The treatment efficiencies of CW-CWs with the longest HRT of 15 days were found to be the highest for COD removal of 95.4 ± 3.2%, BOD removal of 95.3 ± 1.7%, TN removal of 96.2 ± 1.9%, and TP removal of 91.7 ± 1.7%. The excellent performance of CW-CWs could be ascribed to their improved porosity and adsorption capacity, which promoted nutrient uptake, organic matter degradation, and microbial activities. Furthermore, the findings demonstrated that plants grew remarkably longer over time, and CW-CWs showed the greatest growth. Beginning at 10 cm at the start of the experimental work, they grew to a maximum length of > 5 m in 250 days, demonstrating their superior support for Moringa oleifera Lam. development. This study provides valuable insights into optimizing CW design for wastewater treatment, with implications for resource recovery and environmental sustainability.