When light waves travel from air (a less dense medium) into a solid (a denser medium), the following occurs:
The light waves will slow down in the solid medium and bend.
This phenomenon is known as refraction, where the change in speed of light as it enters a different medium causes it to change direction.