The globalized modern world has been confronted with some of the most challenging problems, most of which arise from human activities. Overexploitation of fossil fuels which leads to energy and environmental crisis, and loss of aquatic ecosystem due to improper disposal of household and industrial waste into water bodies constitute some of the biggest emerging global problems. In this study, an unconventional and sustainable approach to produce biodiesel was analyzed by growing in different wastewater. The growth of in wastewater in turn resulted in up to 93.61% reduction in biological oxygen demand, 58.62% reduction in total phosphorus content, and up to 76.61% total nitrogen removal in the wastewater. The total lipid content of the organism was highest in wastewater sample 6 (30.47%). The fatty acid profile also showed a high percentage of C16 and C18 fatty acids which are desirable fatty acids for a high-grade fuel. Production of biodiesel conforming to international standards was predicted from cultivated in wastewater confirming the effectiveness of combining wastewater treatment and biodiesel production. has never been studied before for phytoremediation of wastewater and biodiesel production. This novel research highlighted the application of in wastewater treatment and the viable scope in biodiesel production. This work aimed to provide a significant contribution in reducing the cost of production of biodiesel from microalgae while shedding new light on an eco-friendly approach to wastewater treatment.