The difficulty of developing pollutants in aquatic ecosystems and their potential effects on animals and plants have been raised. Sewage effluent can seriously harm a river's plant and animal life by reducing the water's oxygen content. Due to their increasing use and poor elimination in traditional municipal wastewater treatment plants (WWTPs), pharmaceuticals are one of the developing pollutants that have the potential to penetrate aquatic ecosystems. Due to undigested pharmaceuticals and their metabolites, which constitute a significant class of potentially hazardous aquatic pollutants. Using an algae-based membrane bioreactor (AMBR), the primary objective of this research was to eliminate emerging contaminants (ECs) identified in municipal wastewater. The first part of this research covers the basics of growing algae, an explanation of how they work, and how they remove ECs. Second, it develops the membrane in the wastewater, explains its workings, and uses the membrane to remove ECs. Finally, an algae-based membrane bioreactor for removing ECs is examined. As a result, daily algal production using AMBR technology might range from 50 to 100 mg/Liter. These kinds of machines are capable of nitrogen and phosphorus removal efficiencies of 30¿97% and 46¿93%, respectively.