Early cannons were powered by gunpowder, a mixture of sulfur, charcoal, and potassium nitrate. The ignition of gunpowder created a rapid expansion of gases, propelling the cannonball forward.