A transformer works on the principle of electromagnetic induction. It has two coils/windings known as primary coil/winding and secondary coil/winding.