The first gunpowder-powered rockets were developed in the Song Dynasty in China by the 13th century. The technology spread throughout the Old World in the wake of the Mongol invasions of the mid-13th century. Medieval and early modern rockets were used militarily as incendiary weapons in sieges.