Frequency locking occurs when two oscillating systems adjust their frequencies to match each other, leading to a synchronized state. This phenomenon is crucial in various fields, including electronics, optics, and biology, as it enables the coordination of systems that would otherwise operate independently.