Wastewater from industries (food and beverage, textile), agriculture (irrigation, brines) and households (urine, faeces, kitchen waste) are valuable sources of energy as they contain compounds such as organics (measured as chemical oxygen demand or COD) and nutrients (N, P, K) that can be recovered or converted into valuable products (e.g. methane, chemicals). The ultimate goal of wastewater treatment is to achieve a high-quality water output that will allow for its remediation and reuse (as e.g. drinking water, irrigation, industry), but also to protect water resources, the environment and public health (Almuktar et al., 2018). For example, an excess of nutrient (N, P) discharge to the environment can cause eutrophication, an excess of algae growth and consequently oxygen depletion in water (Nixon, 1995). Removing polluting components from wastewater is therefore essential, and when this process is combined with the reuse and formation of valuable products, wastewater changes from waste stream into resource. As an example, the nutrients present in the wastewater from households (domestic wastewater) in the Netherlands could cover 25-59% of the synthetic fertilizer demand in Dutch agriculture, while its COD could cover 59% of the natural gas demand for cooking in the form of methane (Zeeman & Kujawa-Roeleveld, 2011).However, the composition of the many different wastewater streams is complex and variable, which could condition their treatment and final product. Table 1 is an example of some of the compounds that can be found in different types of wastewater. To use the highest potential from the different waste streams, source-separation based on their composition might be favorable (Zeeman & Kujawa-Roeleveld, 2011). This could be the case for domestic wastewater, which compiles streams from toilet (urine and feaces), water bath and wash water, kitchen waste (solid organics) and rain water (Kujawa-Roeleveld & Zeeman, 2006).