Light travels in straight lines, however, when light travels from one medium to another, it bends. The bending of light at the boundary of the two media is known as refraction.
Light bends when it passes through a lens. A lens is a carefully moulded piece of transparent material, such as glass or plastic, which refracts light to form an image.