**Abstract**

The textile industry is part of the industries that continuously harm the environment because of the high water consumption and the presence of various pollutants in the wastewater. Wastewater treatment is lacking or includes only physical treatment in underdeveloped and developing countries due to installation and operating costs of a treatment plant. As a result, a broad spectrum of hazardous and toxic substances, such as (azo) dyes, heavy metals, acids, soda, and aromatic hydrocarbons, pollute precious sources of clean water, in which untreated water is discharged. The main solution to this problem is to reduce the treatment cost. For this purpose, the process should be optimized to reduce the amount of water and chemicals. In this chapter, first studies on the reference document (BAT) referred by the European Council are reviewed. Minimizing production costs, obtaining high-quality products, and reducing the amount and the pollutant content of wastewater are complex problems that cannot be solved by the conventional optimization methods. Therefore, nonconventional optimization methods applied on the textile processes are also reviewed from the latest studies in the literature.

**Keywords:** sustainability, BAT, optimization, metaheuristics, genetic algorithm
