In the late 15th century the Ottoman empire used firearms as part of its regular infantry. The first successful rapid-fire firearm is the Gatling Gun, invented by Richard Gatling and fielded by the Union forces during the American Civil War in the 1860s.