They had been digging a new supply tunnel for themselves, but they really couldn't dig that as fast as they needed to dig it, to switch water supplies, so instead they built a purification plant that ran off river water instead, and they ... closed one valve, and opened another valve.