A snubber capacitor is a type of capacitor that is used to protect electrical components from voltage spikes and transients. It acts as a buffer between the power supply and the component, absorbing the energy from any sudden increase in voltage, thus protecting the component from damage.