The transformer seems a very simple object, basically it is made by two coil of wire winded around a steel core. The two windings are called primary and secondary.
Its task is to transform the amplitude of the signal to the ends of its windings without modifying the signal itself. But, something happen during this process, and we can achieve some cool Tone from this.