Light rays are bent when they pass from one transparent substance to another because the speed of light changes at the boundary between the two substances. Light rays passing through a prism are bent at both surfaces, with blue light being bent more strongly than red