It's a set of two electrolytic plates that split salt into chlorine, lye, and hydrogen. This is the same way that chlorine is made from salt in a liquid chlorine plant, but they separate the lye out.
So it's like a mini chlorine factory, only the lye stays in the pool which affects the ph.