Abstract: An air gun, includes: a cartridge including a launching chamber, a cylinder including an air chamber, an air valve, a first pin, and a second pin. The air valve is disposed in the air chamber and partially extends out of the cylinder to connect to the cartridge; the air valve is an integrally-formed structure and includes an air passage comprising an air inlet and an air outlet; the air inlet is connected to the air chamber, the air outlet is connected to the launching chamber; the first pin is movable relative to the cylinder to open and close the air inlet, and the second pin is movable relative to the cylinder to open and close the air outlet.