Resonance occurs when the frequency of a wave matches the natural frequency of an object, causing the object to vibrate at its natural frequency. Understanding resonance is important for understanding the behavior of sound waves in different environments.