There are many ways, but the two most common are desalinization tablets and distilling the water. Reverse osmosis works well, as does water softeners. Both uses are elaborate in construction, but simple to use. Most components are readily available at your local hardware store.