Since the turn of this century, wastewaters are no longer merely viewed as the source of environmental pollution but rather as source of various valuable resources, such as purified water, nutrients (nitrogen and phosphorus), precious metal (lithium, palladium, etc.), and renewable energy.