The condition of the cultivation of newly isolated strains, Chlorella Sorokiniana PA.91, was optimized for the first time for magnesium Amino clay nanoparticles (MgAC-NPs) at various temperatures and light intensities in the culture medium of municipal wastewater (MWW) by Central Composite Design in the Response Surface Methodology (RSM-CCD). This study studied MgAC-NPs synthesized with their characteristics FE-SEM, EDX, XRD, and FT-IR. The synthesized MgAC-NPs were naturally stable, cubic-shaped, within the size range of 30 -60 nm. The optimization results show that at culture conditions of 20 °C, 37 μmol m -2 s -1 and 0.05 g L -1 microalga MgAC-NPs have the best growth productivity and biomass performance. Maximum dry biomass weight (55.41 %), specific growth rate (30.26%), chlorophyll (81.26%), and carotenoids (35.71%) were achieved under the optimized condition. Experimental results displayed that C. S PA.91 has a high capacity for lipid extraction (1.36 g L -1 ) and significant lipid efficiency (45.1%). Also, in 0.2 g L -1 of the MgAC-NPs, COD removal efficiency (91.1%) from C.S PA.91 -MgAC-NPs showed. These results showed the potential of C.S PA.91 -MgAC-NPs for nutrient removal in wastewater treatment plants and their quality as sources of biodiesel.