Boiling can kill microbes such as those causing cholera and typhoid, but it does not remove arsenic, fluoride, nitrate or bromate; evaporation may increase their concentration.
Boiling water damages the proteins that microbes need to survive. The World Health Organization says bringing water to a rolling boil can kill the microbes behind diseases including cholera, typhoid and hepatitis A.
Dissolved chemicals behave differently. Arsenic, fluoride, nitrate and bromate generally remain in the water as it heats, while evaporation leaves the same amount of chemical in a smaller volume. One cited study found bromate rising from 3.7 to 4.4 micrograms per litre after tap water was boiled in a saucepan.
Boiling can reduce some volatile chemicals, including trihalomethanes, because they escape with steam. It does not reliably remove chemicals that remain dissolved. In India, the article notes that arsenic, fluoride and nitrate contamination can affect groundwater, with long-term health risks including skin damage, cancer, dental and bone problems, and danger to infants.
Treatment depends on the contaminant. Reverse osmosis can remove many dissolved salts but may waste water and useful minerals; activated carbon can trap chlorine, odours and some organic chemicals, while targeted media such as activated alumina can capture fluoride. Testing local water and choosing treatment accordingly remain important.