 Sewage can be converted to biogas using anaerobic digestion.Increasingly, agriculture is using untreated wastewater for irrigation.Cities provide lucrative markets for fresh produce, so are attractive to farmers.