The invention discloses a transformer. A layer of first coil serving as a primary coil, a layer of second coil serving as a secondary coil, a layer of third coil serving as a primary coil, a layer of fourth coil serving as a secondary coil and a layer of fifth coil serving as a primary coil are wound in the axial direction of a framework, and shielding layers are arranged between the first coil and the second coil, between the second coil and the third coil, between the third coil and the fourth coil and between the fourth coil and the fifth coil respectively. According to the transformer, the winding structure of the primary coil, the secondary coil, another primary coil, another secondary coil and another primary coil is adopted, gaps between the primary coils and the secondary coils are greatly reduced, and leakage inductance is greatly reduced. Meanwhile, total magnetic field intensity of the gaps between the primary coils and the secondary coils is lowered, the total energy of a primary winding space magnetic field and the total energy of a secondary space magnetic field are greatly reduced, and leakage inductance is further reduced and is almost 2-4% of primary inductance. Due to the fact that the leakage inductance is reduced, loss of the transformer and voltage loss are greatly reduced.