Germicidal lamps function by emitting UV-C light, which has a wavelength range of 200-280 nm. This type of light is particularly effective at disrupting the DNA and RNA of microorganisms, thereby preventing them from replicating and causing infection. The mechanism involves the formation of thymine dimers in the DNA, which lead to mutations and cell death.