Vinegar acts as a mild acid that can disrupt the structure of algae without damaging the pool surfaces or affecting the water quality. It can be used as both a preventative treatment and directly applied to areas affected by algae.