Light acts on bilirubin, a yellow substance produced when the body breaks down old blood cells. In newborns, the liver may not be fully developed to process bilirubin effectively, leading to jaundice.