An RCD is a safety device designed to quickly disconnect electrical circuits when it detects an imbalance in the flow of electric current caused by a fault (such as leakage to earth). This helps prevent electric shocks and reduce the risk of electrical fires.