A transformer is an **AC (Alternating Current) machine**.
This is because transformers work on the principle of **electromagnetic induction**, which only happens with alternating current. The AC current in the primary coil creates a changing magnetic field, and this changing magnetic field induces a voltage in the secondary coil.
If a transformer were to be used with DC (Direct Current), the magnetic field would be constant (not changing), and no voltage would be induced in the secondary coil after the initial moment of current flow. Therefore, transformers only function properly with AC.