Assuming the AC circuit has an inductive load, the RC snubber across the switch performs two jobs.
When the switch opens, the inductor current flows into the resistor in series with capacitor, creating a damped oscillation that dies out due to the dissipation of energy in the resistor.
When the switch closes, the capacitor might have a charge on it, and the resistor limits the initial capacitor discharge current.
Look at this. Switch is open for 20ms, then it closes, and then opens again at 40ms.
The capacitor C1 charges to 100V, and it discharges through R1 (10A pulse) as the switch closes at 20ms. The resistor is chosen to keep that pulse within limits.
Just before 40ms, the inductor current is 3A. As the switch opens, the snubber limits the first voltage peak to about 900V. It would have spiked high enough to create an arc across the opening switch otherwise (>20kV). The duration of the ringing is determined by L1 R1 C1.