Which behavior of waves allows them to change direction when passing through different materials

Refraction is the behavior of waves that allows them to change direction when passing through different materials. Refraction occurs when a wave passes from one medium to another with a different density, causing the wave to change speed and direction.