Why does a pencil partly immersed in water appears to be bent inside the water?
Light does not travel with same speed in all media.
Light rays while entering a media change their direction depending upon the optical density of the medium. As water is a optically denser medium with respect to air, light rays from the pencil bends away from the normal. When this bent light reaches the eye, the pencil appears to be displaced or distorted.