Altogether, more than a half trillion gallons of fresh water are used in the dyeing of textiles each year. The dye wastewater is discharged, often untreated, into nearby rivers, where it reaches the sea, eventually spreading around the globe.