Hydrochloric acid is used to adjust the pH of swimming pool water.  Chlorine levels in pool water is dependent on the pH of the water, which can be optimized with chemicals such as hydrochloric acid. More information about maintenance for a healthy and safe swimming pool experience can be found on the CDC’s website.