When a round is fired, residual energy from the propellant charge in the cartridge acts upon the safely locked breech and bolt carrier.
A quantity of powder gases driving the bullet through the barrel is tapped and acts upon the piston in the gas tube located above and parallel to the barrel.