Resonance occurs in a circuit when the frequency of the applied voltage matches the natural frequency of the circuit.