An ATS (Automatic Transfer Switch) is a device used in electrical systems to automatically switch the power supply between a primary source (like the utility/grid) and a backup source (like a generator) when the primary source fails. It ensures continuous power by detecting outages and rapidly transferring the load to the backup source, then switching back once normal power is restored. It’s commonly used in homes, businesses, hospitals, and data centers for reliable power continuity.