A switchgear  is an electrical device used to switch the power supply from one source to another, such as from the main electricity supply to a generator or backup system. It ensures a safe and smooth transfer of power without interrupting the electrical load.