The Bofors 40 mm gun is an anti-aircraft autocannon designed by the Swedish defence firm of Bofors. It was one of the most popular medium-weight anti-aircraft systems during World War II, used by most of the western Allies as well as various other forces. It is often referred to simply as the Bofors gun.