When the Chinese invented gunpowder in 850, their explosive invention became the basis for almost every weapon used in war. It radically changed warfare all over the world, affecting the way battles were fought throughout the Middle Ages. When guns were invented five centures later, the world was again transformed. Explosive weaponry was available to the individual, creating a new class of soldier and giving birth to the modern army.