Triac is a bidirectional rectifier from triode for alternating current that functions as an electrically controlled switch for AC loads and having a npnpn structure, a three terminal electronic component that conducts current in either direction when triggered.