The wastewater treatment plant developed by the UAB and Aigües de Manresa S.A. municipal company, generates value-added products simultaneously to the debugging process. The system recovers 50% of the phosphorus, useful as a fertilizer, extracts materials to produce bioplastics and reduces the operating costs of a sewage treatment plant by 25%. This pilot plant is part of the SMART-Plant European project (Grant Agreement No. 690323) and is an Innovation Action of the H2020-WATER-1b-2015 program.