Gunpowder was discovered in the 9th century by chinese alchemists searching for an elixir of immortality. By the time the Song Dynasty treatise, Wujing Zongyao was written by Zeng Gongliang and Yang Weide in AD 1044, the various Chinese formulas for gunpowder held levels if nitrate in the range of 27% to 50%