The 13,800 to 4,160 volt transformer failed causing it to catch fire in the primary side cabinet. The feed to the transformer tripped but, the fire continued to burn the insulation on the wires. Once it was confirmed the power was isolated the fire was extinguished by our MERT team.