A chain gun is a type of machine gun/autocannon that uses an external source of power to cycle the weapon's action, rather than diverting excess energy from the cartridges' propellant as in a typical automatic firearm, and does so via a continuous loop of chain drive similar to that used on a motorcycle or bicycle.