One alchemical book records, as an error, the practice of burning saltpetre and sulphur together with honey until fire springs up. The Zhenyuan miaodao yaolüe (Essentials of the Wondrous Way of Zhenyuan), whose edition note on the page says it was originally attributed to Zheng Siyuan and quotes Li Ji, Wu Yun and Yinluozi, so that it "must date from the Five Dynasties or early Song", lists a run of mistaken alchemical practices, one of which is: "Some take sulphur and realgar with saltpetre, burn them with honey, and the flame rises, burning hands and face and reducing houses to ash." The author's verdict is that such practices "all waste wealth and ruin households, harm the body and cost lives, injure custom and ruin teaching". The same saltpetre and sulphur later became the stuff of weapons.
The formulas that entered military use are found in the Northern Song. Emperor Renzong's preface says he ordered the Hall Attendant of the Tianzhang Pavilion, Zeng Gongliang, and others to compile the Wujing zongyao (Essentials of the Military Classics), with Ding Du "directing the office"; the page marks the preface as written in the fourth Qingli year, noting that this is supplied from the Zhizhai shulu jieti. Volume 12 of the first part has two places headed "huoyao fa" (gunpowder method): one in the section on defensive catapults, using Jinzhou sulphur, "wo huang" and saltpetre, with orpiment, white lead, bamboo shavings, pine resin, tung oil and so on, made into a paste, and "launched by catapult"; the other follows the entry on the "caltrop fire-ball": "The gunpowder method uses 1 jin 4 liang of sulphur, 2.5 jin of saltpetre, 5 liang of coarse charcoal powder, 2.5 liang of pitch, 2.5 liang of dried lacquer". The first has no charcoal; the second does. The same volume describes how to use the thunderclap fire-ball, the gunpowder whip-arrow and the gunpowder arrow.
The late-Jin defence of the capital put gunpowder into the war record. The Biography of Chizhan Hexi in the History of the Jin (Jin shi) records the northern troops pressing on the capital, with the defenders holding "a fire catapult called Heaven-Shaking Thunder: an iron jar filled with powder, lit by fire; the catapult rises and the fire bursts, its sound like thunder, heard over a hundred li". Someone proposed lowering Heaven-Shaking Thunder on iron ropes down the wall, and "where they were digging, the fire bursts, and men and ox hides are all shattered without trace"; there was also the fire lance, "filled with powder and fired, it burns ten paces and more ahead", and "the great army feared only these two things". The besiegers used it too: "the great army struck with fire catapults, and the fire spread at once and could not be put out". The passage is placed in the "ninth year", the previous section being the eighth Zhengda year, so it is probably the ninth Zhengda year. The History of the Ming (Ming shi) gives another account: what was anciently called a catapult "all launched stones by a mechanism", and "in the early Yuan, western catapults were obtained and used against Cai, the Jin city, and fire was first used; but the method of making them was not handed down, and they were rarely used afterwards". The two accounts stand side by side, without a verdict here.
The Ming organised fire-weapons into a camp. Treatise on the Military (1) in the History of the Ming says the capital's Three Great Camps were "the Five Armies, the Three Thousands, the Divine Engines. Their form was all complete in the Yongle period", and that the origin of the Divine Engine Camp was "campaigning in Jiaozhi, obtaining fire-weapon methods, setting up a camp to drill in them"; in ordinary times "the Five Armies drilled in formations, the Three Thousands in patrols, the Divine Engines in fire-weapons". Treatise (4) records that in the tenth Yongle year (1412) an edict set "five gun mounts" on the mountain tops from Kaiping to Huailai, Xuanfu, Wanquan and Xinghe, and in the twentieth year added them in the garrisons of Datong, Yanghe, Shuozhou and others; at the same time it says "sharp weapons are not to be shown to others, and the court was careful with them". In the fifth Xuande year an order went to the Commander-in-Chief at Xuanfu: "The divine guns are what the state prizes; at border forts and bastions issue them by measure, to strengthen the army's might, and do not issue them lightly"; in the sixth Zhengtong year border officers set up a divine gun office at Dushi, and "the emperor, thinking that fire-weapons made outside risked leaking the methods, ordered it stopped".
In the late Ming there were more fire-weapons, and more problems. Treatise (4) records that a ship of the Great West later arrived and the Ming obtained huge guns, the "hong yi" (red barbarians), that could "split stone walls and shake the air for dozens of li", and that "in the Tianqi period they were granted the title of Grand General and officials were sent to sacrifice to them"; in the Chongzhen period the Grand Secretary Xu Guangqi "asked that Westerners be made to manufacture them and send them to each garrison". But "commanders were mostly unfit"; when the rebel bands attacked the capital, "the Three Great Camps collapsed without a fight, and the guns all fell to the rebels, who used them against the walls", while the eunuchs "all left the vessels empty with powder in them, only for the noise". The historians put it plainly: "only fire-weapons were rare in earlier ages, so they are treated here in detail."
Song Yingxing, speaking of gunpowder, first says it is a topic that "those in our time who dream of rising and winning office all open their eyes wide to discuss, writing books to present, not always from experiments", and that he himself "also set down a few leaves, appended in this volume"; he explains the materials through yin and yang: "Saltpetre is of the utmost yin, sulphur of the utmost yang; the two divine things of yin and yang meet where no gap is left", and also "saltpetre's nature is straight: for straight striking, nine parts saltpetre to one of sulphur. Sulphur's nature is transverse: for blast, seven of saltpetre to three of sulphur". The Tiangong kaiwu (The Exploitation of the Works of Nature) was first printed in 1637 (the tenth Chongzhen year of the Ming).
These records link gunpowder to other entries: Song Yingxing used yin and yang for the properties of the materials, the framework treated in the entry on Yin-Yang & Five Elements; the "Frankish" guns and "bird-beak" guns, "dozens of kinds" in all, listed in Treatise (4), belong to the entry on Firearms Evolution; the gun mounts on mountain tops and the divine guns in border forts join the frontier defence treated in the entry on Great Wall; in the History of the Jin the officers of the Bureau of Military Affairs propose "having the prefectures and counties of Henan fortify the walls and clear the countryside", and the defenders' catapults were used within the line of defence treated in the entry on Scorched Earth; Xu Guangqi's request that Westerners make the guns connects to the entry on Western Learning.
Saltpetre and sulphur meant different things in different hands. The alchemical book records burning them with honey, so that hands and houses were burnt, as an error; the Northern Song compilers set down the weights and headed it "gunpowder method"; the defenders of the Jin capital packed the powder into iron jars; the Ming capital army set up a whole camp for fire-weapons and called the divine guns at the border forts "what the state prizes." Song Yingxing, for his part, warned that those who talk of gunpowder may not all have tested it. To the alchemist it was a fault, to the soldier a weapon, and to the historians of the Ming a matter "rare in earlier ages, so treated here in detail."
Gunpowder Weaponry is the class in the chapter on Sciences on gunpowder and the making of military arms. It covers the path from the Tang alchemical text that records saltpetre and sulphur mixtures burning, through the Northern Song Wujing Zongyao (Collection of the Most Important Military Techniques) with its three military gunpowder formulas, to the Ming Shenjiying, set up in the Yongle reign as a unit specialising in firearms.