This article describes the improvement of wastewater treatment in a fertilizer plant located in Central Italy (municipality of Vasto). In this facility, water is used for the removal of dust and fluorinated gases from the air. The resulting wastewater contains fluorides and phosphates in hazardous forms. Its treatment ordinarily does not result in a Zero-Liquid Discharge (ZLD) process. To achieve this purpose, several reagents were tested, focusing on the correlation linking pH, type of reagent and the effect on the separation of fluorides and phosphates from the wastewater. It was eventually found, and explained with a model, that hydrated lime at pH = 12 was so effective as a precipitating agent that phosphate and fluoride separation reached a value of 99.9%, thus allowing for reuse of the water in the plant process. Furthermore, phosphates and fluorides precipitated in a non-hazardous form, so that the material could also be recycled. In synthesis, wastewater treatment of the fertilizer plant was upgraded so that it became a ZLD process coupled with the recovery and recycling of fluorides and phosphates.