Phototherapy works by utilizing light to trigger specific biological processes. It can either deactivate harmful toxins or enhance the body's ability to remove them. For instance, in cases of bilirubin toxicity in newborns, blue light is used to convert bilirubin into more water-soluble forms, facilitating its excretion. The treatment is often non-invasive, making it a preferred choice for certain toxicological conditions.