The present invention concerns a process for producing a high purity phosphorus product from wastewater, by carrying to the process phosphate-containing wastewater that has been treated to remove biomass and other impurities, not including dissolved phosphates, creating floes using one or more iron, aluminium, magnesium or calcium salts, adding an alkali metal or alkaline earth metal hydroxide or oxide to the flocs in an amount effective to react the iron, aluminium, magnesium or calcium salt into the corresponding hydroxide, separating the hydroxide from the formed phosphate, and obtaining the high purity phosphorus product in a form of a liquid or solid phosphate salt.