Historically, urban wastewaters (UWWs) that contain high levels of organic carbon, nitrogen (N), and phosphorous (P) have been considered an environmental burden and have been treated at the expense of significant energy input. With the advent of new pollution abatement technologies, UWWs are now being regarded as a renewable resource from which, useful chemicals and energy could be harvested. This study proposes an integrated, algal-based system that has the potential to treat UWWs to the desired discharge standards in a sustainable manner while recovering high fraction of its energycontent as well as its and N-and P-contents for use as fertilizers. Key embodiments of the system being proposed are: i) cultivation of an extremophile microalga, Galdieria sulphuraria, in UWW for removal of carbon, N, and P via single-step by mixotrophic metabolism; ii) extraction of energy-rich biocrude and biochar from the cultivated biomass via hydrothermal processing; and, iii) enhancement of biomass productivity via partial recycling of the nutrient-rich aqueous product (AP) from hydrothermal-processed biomass to the cultivation step to optimize productivity, and formulation of fertilizers from the remaining AP. This paper presents a process model to simulate this integrated system, identify the optimal process conditions, and establish ranges for operational parameters.