Chlorine is chemical element commonly used in swimming pools as a disinfectant due to its ability to effectively kill bacteria, viruses, and other microorganisms that can cause illness or infections.