quality:corruption, stylistic:style_transfer, structural:scholar_edition, information:highlighting, stylistic:tone
Post-classical technology

The Wujing Zongyao (Essentials of the Military Arts), written by Zeng Gongliang, Ding Du, and others at the order of Emperor Renzong around 1043 during the Song dynasty illustrate the eras focus on advancing intellectual issues and military technology due to the significance of warfare between the Song and the Liao, Jin, and Yuan to their north. The book covers topics of military strategy, training, and the production and employment of advanced weaponry.

Advances in military technology aided the Song dynasty in its defense against hostile neighbors to the north. The flamethrower found its origins in Byzantine -era Greece, employing Greek fire (a chemically complex, highly flammable petrol fluid) in a device with a siphon hose by the 7th century. The earliest reference to Greek Fire in China was made in 917, written by Wu Renchen in his Spring and Autumn Annals of the Ten Kingdoms. In 919, the siphon projector-pump was used to spread the 'fierce fire oil' that could not be doused with water, as recorded by Lin Yu in his Wuyue Beishi, hence the first credible Chinese reference to the flamethrower employing the chemical solution of Greek fire (see also Pen Huo Qi). Lin Yu mentioned also that the 'fierce fire oil' derived ultimately from one of China's maritime contacts in the 'southern seas', Arabia Dashiguo. In the Battle of Langshan Jiang in 919, the naval fleet of the Wenmu King from Wuyue defeated a Huainan army from the Wu state; Wenmu's success was facilitated by the use of 'fire oil' ('huoyou') to burn their fleet, signifying the first Chinese use of gunpowder in a battle. The Chinese applied the use of double- piston bellows to pump petrol out of a single cylinder (with an upstroke and downstroke), lit at the end by a slow-burning gunpowder match to fire a continuous stream of flame. This device was featured in description and illustration of the Wujing Zongyao military manuscript of 1044. In the suppression of the Southern Tang state by 976, early Song naval forces confronted them on the Yangtze River in 975. Southern Tang forces attempted to use flamethrowers against the Song navy, but were accidentally consumed by their own fire when violent winds swept in their direction.

Although the destructive effects of gunpowder were described in the earlier Tang dynasty by a Daoist alchemist, the earliest developments of the gun barrel and the projectile-fire cannon were found in late Song China. The first art depiction of the Chinese ' fire lance ' (a combination of a temporary-fire flamethrower and gun) was from a Buddhist mural painting of Dunhuang, dated circa 950. These 'fire-lances' were widespread in use by the early 12th century, featuring hollowed bamboo poles as tubes to fire sand particles (to blind and choke), lead pellets, bits of sharp metal and pottery shards, and finally large gunpowder-propelled arrows and rocket weaponry. Eventually, perishable bamboo was replaced with hollow tubes of cast iron, and so too did the terminology of this new weapon change, from ' fire-spear ' huo qiang to 'fire-tube' huo tong. This ancestor to the gun was complemented by the ancestor to the cannon, what the Chinese referred to since the 13th century as the 'multiple bullets magazine erupter' bai zu lian zhu pao, a tube of bronze or cast iron that was filled with about 100 lead balls.

The earliest known depiction of a gun is a sculpture from a cave in Sichuan, dating to 1128, that portrays a figure carrying a vase-shaped bombard, firing flames and a cannonball. However, the oldest existent archaeological discovery of a metal barrel handgun is from the Chinese Heilongjiang excavation, dated to 1288. The Chinese also discovered the explosive potential of packing hollowed cannonball shells with gunpowder. Written later by Jiao Yu in his Huolongjing (mid-14th century), this manuscript recorded an earlier Song-era cast-iron cannon known as the 'flying-cloud thunderclap eruptor' (fei yun pi-li pao). The manuscript stated that:

As noted before, the change in terminology for these new weapons during the Song period were gradual. The early Song cannons were at first termed the same way as the Chinese trebuchet catapult. A later Ming dynasty scholar known as Mao Yuanyi would explain this use of terminology and true origins of the cannon in his text of the Wubei Zhi, written in 1628:

The 14th-century Huolongjing was also one of the first Chinese texts to carefully describe to the use of explosive land mines, which had been used by the late Song Chinese against the Mongols in 1277, and employed by the Yuan dynasty afterwards. The innovation of the detonated land mine was accredited to one Luo Qianxia in the campaign of defense against the Mongol invasion by Kublai Khan, Later Chinese texts revealed that the Chinese land mine employed either a rip cord or a motion booby trap of a pin releasing falling weights that rotated a steel flint wheel, which in turn created sparks that ignited the train of fuses for the land mines. Furthermore, the Song employed the earliest known gunpowder-propelled rockets in warfare during the late 13th century, its earliest form being the archaic Fire Arrow. When the Northern Song capital of Kaifeng fell to the Jurchens in 1126, it was written by Xia Shaozeng that 20,000 fire arrows were handed over to the Jurchens in their conquest. An even earlier Chinese text of the Wujing Zongyao ("Collection of the Most Important Military Techniques"), written in 1044 by the Song scholars Zeng Kongliang and Yang Weide, described the use of three spring or triple bow arcuballista that fired arrow bolts holding gunpowder packets near the head of the arrow. Going back yet even farther, the Wu Li Xiao Shi (1630, second edition 1664) of Fang Yizhi stated that fire arrows were presented to Emperor Taizu of Song (r. 960–976) in 960.