Medieval world

Gunpowder was invented in China as early as the 9th century and came to Europe several hundred years later.

An excerpt from the article 25 facts about Medieval world

It most likely arrived in the Old World as a result of battles with the Mongols, who used it. Recipes for making gunpowder appeared in European books as early as the second half of the 13th century, but it was not until 200 years later that it came into widespread use in the army.