In what war was the Gatling gun first used?

Precursor of the modern machine gun, the rapid-firing weapon the Gatling gun saw limited action during the Civil War, specifically in the Petersburg Campaign in 1864.

The hand-crank-operated gun, capable of firing hundreds of rounds a minute, was patented by Richard J. Gatling in 1862.