Microcontroller Based Auto Mains Failure Controller is used to protect and control EA [Engine Alternator] in absence of Mains power supply. The Controller monitors main supply and if there is any voltage unbalance or phase failure, transfers load to DG by making DG on, considering all parameters that are associated with DG. The Controller contains a three phase AC voltage measuring circuit and is equipped with liquid crystal display and 4 digits of 7 segment display presenting all values and alarms. Microcontroller Based Auto Mains Failure Controller comes with various industrial Communication Protocols.