What are the two main classes of water and how

What are the two main classes of water and how is water from a surface source, for example, from a lake, made safe to drink?