Transformation of impure water