The M39 was developed by the Springfield Armory, based on the World War II–era design of the GermanMauser MG 213, a 20mm (and 30mm) cannon developed for the Luftwaffe, which did not see combat use. The same design inspired the 30mm BritishADEN cannon and the FrenchDEFA, but American designers chose a smaller 20mm round to increase the weapon's rate of fire and muzzle velocity at the expense of hitting power. The 20×102mm round was later chosen by France for the M621 cannon.
Initially designated the T-160, the new gun was installed for combat testing on a number of F-86 Sabre aircraft under the "GunVal" program in late 1952, and used in action over Korea in early 1953. It was subsequently adopted as standard armament of the F-86Hfighter-bomber, F-100 Super Sabre, F-101A and F-101C Voodoo, and the F-5 Freedom Fighter. Current models of the F-5 Tiger II still use the M39A2 version of this weapon. The M39A2 was introduced in 1964.