It clears green water
With the right flow, floating algae do not survive repeated passes. This is the job UV does best, in fresh and salt water alike.
In a UV sterilizer, water flows past an ultraviolet lamp inside a sealed tube, moved by a built-in pump or by a filter or separate pump. With a high enough dose, the light kills green-water algae, free-floating bacteria and the swimming stages of some parasites. It treats only the water that passes it, so it helps keep problems from spreading; it does not cure a fish that is already sick.
With the right flow, floating algae do not survive repeated passes. This is the job UV does best, in fresh and salt water alike.
Only organisms passing through receive UV, and the required dose varies. A green-water clarifier is not necessarily rated for parasites. UV does not treat an infection already on a fish.
Fish Health Check
Most of the bacteria that process waste in an established tank live on surfaces in the filter and rock, where the lamp does not reach them. UV can affect bacteria floating in the water, including bottled bacteria you have just added.
The slower water passes the lamp, the stronger the dose. When a maker gives both ratings, the one for parasites calls for slower flow than the one for clearing algae. Use the rating for your model and goal: slowing a clarifier does not make it a parasite control.
Shop UV sterilizers
Pick a unit rated for your tank and the job, then set the flow its chart asks for. A pump delivers less than its box says once it pushes water through hoses and fittings.
Shop UV sterilizers
Use the maker's layout, generally after mechanical filtration so clear water reaches the lamp. Establish the specified flow and check joints for leaks; then, with the unit closed and leak-free, plug it into a GFCI-protected outlet with a drip loop in the cord.

Follow your model's lamp or cartridge schedule and replace it on time even if it still lights. Clean the sleeve only if the manual says it can be serviced. Before you open the wet chamber, unplug the UV unit, stop the pump that feeds it, and isolate and drain the chamber as the manual directs.
Shop UV bulbsRun it on the schedule its maker recommends for your goal: some clarifiers can run only as needed once the water is clear. Run the lamp only with water flowing: switch it off before stopping its pump, and unplug it before opening it. For bottled bacteria or medication, follow the product's directions on when to turn the UV off and when to restart it; some need it off for the whole treatment.
Film on glass, hair algae and cyano are not floating, so they never pass the lamp.
Algae troubleshooterNew fish still bring problems in on their skin and gills. Quarantine first.
Quarantine and compatibilityUV light harms eyes and skin. Unplug the unit before opening it.