Chlorine acts as a bleaching agent primarily through oxidation. In the presence of moisture, chlorine reacts with water to form hypochlorous acid (HOCl) and hydrochloric acid (HCl). Hypochlorous acid is a strong oxidizing agent and oxidizes colored substances to colorless compounds, thus causing bleaching.