The process is relatively simple: a) the dirty water is heated b) to the boiling point and thus vaporizes c) (becomes steam), while other substances remain in solid state, in boiler.
(other substances; remain; in solid state)
other substances
remain
in solid state