One of the primary chemicals used in water treatment is chlorine. Chlorine is widely utilized for its disinfection properties, effectively eliminating bacteria, viruses, and other pathogens. When chlorine is added to water, it forms several byproducts, including chloramines, which also contribute to disinfection. However, the use of chlorine must be carefully managed, as excessive amounts can lead to harmful byproducts such as trihalomethanes (THMs), which are associated with health risks.