Light refracts and reflects when moving between materials of different densities. Refraction causes light to bend when entering a denser medium, following Snell's law. Total internal reflection occurs when light hits a boundary at an angle greater than the critical angle, causing all light to reflect inside the denser medium rather than passing through.