UV treatment works by disrupting the DNA and RNA of microorganisms. When microorganisms are exposed to UV-C light, the light penetrates their cell walls and damages their genetic material. This prevents the microorganisms from replicating and effectively kills or inactivates them.