Abstract.1 This work reviews the main methods of nitrogen and phosphorus removal from wastewater. The method of simultaneous removal of highly concentrated nitrogen and phosphorus was analyzed by physical and chemical precipitation, forming struvite, a by-product of magnesium ammonium orthophosphate hexahydrate. Laboratory investigations were conducted on the test solutions with the concentrations of ammonium nitrogen, phosphates, ions of magnesium and calcium corresponding to the ones of relevant elements in wastewater of swine complexes located in Lviv region, Ukraine. The analyses were done at various molar ratios of magnesium and phosphate ions and at various pH values. The comparative thermal analysis of chemical precipitation products and pure struvite was performed. The optimal conditions were identified to experience the maximum efficiency of simultaneous removal of ammonium nitrogen and phosphate ions from wastewater, forming MgNH 4 PO 4 ·6H 2 O. Recommendations on the use of the obtained product as a fertilizer were elaborated.