A Tesla coil is a type of high voltage transformer used for generating high-frequency alternating current.