UV sterilizers use ultraviolet light to kill or deactivate microorganisms, including bacteria, parasites, and algae, present in the water. The water is passed through a chamber where a UV bulb emits the light, disrupting the DNA of the organisms and rendering them harmless. UV sterilizers are commonly used in aquariums to improve water quality and reduce the risk of diseases.