Military history of the Song dynasty
The military history of the Song dynasty encompasses military activity of the Han Chinese state of Song from 960 AD with the overthrow of Later Zhou until 1279 AD when China was conquered by the Mongol-led Yuan dynasty. Northern Song. Taizu (r. 960–975). Emperor Taizu of Song (r. 960–975), Zhao Kuangyin, was commander-in-chief of the capital guards and jiedushi of Songzhou in the Later Zhou dynasty. In 960 he was dispatched by the Grand Chancellor Fan Zhi to fight against Northern Han and the Khitans. When Zhao's army reached Chenqiao  Station, his soldiers proclaimed him emperor, and the administration of Kaifeng accepted his authority. Resistance from the provincial commanders Li Yun and Li Chongjin were suppressed by Zhao's generals Murong Yanzhao and Han Lingkun. Afterwards, Zhao took over the imperial guard and dismissed all his generals with honors, gaining complete control over the former territory of Later Zhou. Emperor Taizu then set about conquering the various states of the Ten Kingdoms. Jingnan fell in 963, Meng Chang surrendered Later Shu in 965, Liu Chang surrendered Southern Han in 970, and Southern Tang fell in 975. Campaigns against Northern Han  were launched in 968 and 969, but Song forces were unable to breach the fortifications of Taiyuan. In 969, gunpowder propelled fire arrows, rocket arrows, were invented by Yue Yifang and Feng Jisheng. In 975, the state of Wuyue sent a group of soldiers skilled in the use of fire arrows to the Song dynasty, which used fire arrows and incendiary bombs in the same year to destroy the fleet of Southern Tang. Taizu did not live to see China unified. He died in 976 and was succeeded by his younger brother Zhao Guangyi, posthumously Emperor Taizong of Song. Taizong  (r. 976–997). Emperor Taizong of Song, Zhao Guangyi, finished the conquest of the remaining Ten Kingdoms. Qian Chu surrendered Wuyue in 978 and in 979, four Song armies under Pan Mei and Guo Jin marched on the capital of Northern Han, Taiyuan. The Khitans sent a relief force but were annihilated. So fell Northern Han. In the southwest, the Song and their aboriginal allies in Guizhou attacked the Mu'ege Kingdom in 976, forcing them to retreat to Dafang County. In 979, Taizong personally led an invasion of the Khitan Liao dynasty to retake the Sixteen Prefectures. He laid siege to  Youzhou but was defeated by Khitan reinforcements led by Yelü Xiuge at the Battle of Gaoliang River. In 980, Yang Ye and his son Yanlang (Yang Yanzhao) defeated a major Liao invasion, consisted of 100,000 troops, at the Yanmen Pass region. In 982, he scored yet again another victory; this time counterattacked Liao well into their controlled areas of the Shanxi region. In 981, the Song invaded kingdom of Đại Cồ Việt with initial success but was ambushed and the campaign ended with Lê Hoàn accepting Song suzerainty. In 982, Li Jipeng of the Dingnan Jiedushi surrendered to the Song , but his cousin Li Jiqian rebelled. In 986, the Song attacked the Liao again. Song troops under Pan Mei, Cao Bin, and Yang Ye were defeated by a Liao army led personally by Empress Dowager Chengtian. Yang Ye was captured and died in captivity due to wound infection. In 988, Emperor Shengzong of Liao personally led an invasion of Song and successfully sacked many of the border regions before retreating in the spring of 989. The Song strengthened its border garrison in the summer with a large force. When the Liao next tried to raid Song territory by bypassing the  stationed army, Song general Yin Jilun forced marched in pursuit and attacked them by surprise, shattering the Liao force. In 993, Wang Xiaopo and Li Shun rebelled in Sichuan and were suppressed by 995. In 994, the Song deposed Li Jiqian. The Liao attacked the Song and laid siege to Zitong with 100,000 troops. They were repelled with the aid of fire arrows. Taizong died on 9 May 997, and was succeeded by his son, Zhao Heng, posthumously Emperor Zhenzong of Song. Zhenzong (r. 997–1022). Emperor Zhenzong of Song did not have any stomach for war so he legitimized Li  Jiqian and appeased the Tanguts to the northwest with gold, brocade, money and tea. Li Jiqian captured Lingzhou in 1002. The Khitans immediately attacked in 998 but were forced to retreat in 1000 after failing to take key cities. They attacked again in 1001 and 1003 but were repulsed. Khitan aggression towards the Song culminated in a full-scale invasion in 1004 by Emperor Shengzong of Liao. Khitan forces penetrated as far as Chanzhou at the Yellow River, within striking distance of Kaifeng. Zhenzong, Yang Si, and Yang Yanzhao (Yanlang) marched the Song army north to meet the Khitans in  combat. In January 1005, the Khitan general Xiao Dalin was killed by a giant crossbow, crippling the Khitan offensive. Peace negotiations commenced from 13 to 18 January. In the resulting peace treaty, known as the Chanyuan Treaty, the two sides agreed to delineate their current territorial boundaries and for the Song to make annual installments of 200,000 bolts of raw silk and 100,000 taels of silver to the Liao as tribute. In 1000, Tang Fu demonstrated gunpowder pots and caltrops to the Song court and was rewarded. In 1002, Shi Pu demonstrated fireballs utilizing gunpowder to the Song court and  blueprints were created for promulgation throughout the realm. Zhenzong died on 23 March 1022 and was succeeded by his son, Zhao Zhen, posthumously Emperor Renzong of Song. Empress Liu became regent. Renzong (r. 1022–1063). Emperor Renzong of Song was still a child when his father died, so Empress Liu became regent, ruling in his stead for the next 12 years until she died. By the time he came to power, the Song military had been without any practical combat experience for decades. In 1034, Li Yuanhao of the Tanguts raided Song dynasty On 10 November 1038, Li Yuanhao declared himself  Emperor Jingzong of Western Xia. In the same year, rebellion broke out in Guangnan West Circuit and was suppressed. With the proclamation of their own dynasty, the Tanguts began a protracted campaign of military aggression against the Song, lasting six years until a truce was called in 1044. The Liao dynasty took advantage of the situation and attacked the Song as well. Although ultimately repelled, the Song agreed to increase annual tribute to 200,000 taels of silver and 300,000 bolts of silk. In 1043, the Yao people of Guiyang rebelled. It was only suppressed in 1051. In 1044, rebellion broke  out in Guangnan West Circuit and Sichuan. In the same year, the chemical formula for gunpowder appeared in the military manual "Wujing Zongyao", also known as the "Complete Essentials for the Military Classics". "Thunderclap bombs" and a "triple-bed-crossbow" firing fire arrows were also mentioned in the "Wujing Zongyao". In 1048, Wang Ze rebelled in Hebei and was suppressed. In 1049, Nong Zhigao of the Zhuang people rebelled in Guangnan West Circuit. He was suppressed in 1053. In 1055, Peng Shixi rebelled in Jinghu and was suppressed in 1058. In 1058, rebellion broke out in Yongzhou and was suppressed  in 1061. Renzong died on 30 April 1063 and was succeeded by his cousin Zhao Zongshi, posthumously Emperor Yingzong of Song. Yingzong (r. 1063–1067). During Emperor Yingzong of Song's reign, the Western Xia raided Song territory in 1063 and 1066, but ultimately their emperor was wounded in action and died. Yingzong soon fell ill and died on 25 January 1067. He was succeeded by his son, Zhao Xu, posthumously Emperor Shenzong of Song. Shenzong (r. 1067–1085). In 1067, private trade of gunpowder ingredients was banned by the Song. In 1072 and 1073, the Song commander Wang Shao defeated the  Tibetans of Tsongkha and conquered Xizhou and Hezhou. "Lý–Song War": In November 1075, Vietnamese generals Lý Thường Kiệt and Nùng Tông Đán invaded the Song dynasty with 63,000 troops, capturing Qinzhou, Lianzhou, and destroying Yongzhou before retreating. Emperor Shenzong proclaimed that “the [Vietnamese] king Lý Càn Đức has revolted and attacked my fortresses and towns.” Nine armies were dispatched to “end this tyrannical mode of government". The next year, Song general Guo Kui invaded Đại Việt and pushed to the Cầu River, where the war reached a stalemate. In 1076, trade of gunpowder ingredients with the Liao and Western  Xia dynasties was outlawed by the Song. "Lý–Song War": The war ended in 1077 with the Vietnamese Lý monarch agreed to becoming a Song tributary in return for the withdrawal of Song troops, despite inflicting heavy casualties on the Song Imperial army. In 1081, Song forces invaded Western Xia but forgot to bring siege weapons, resulting in a prolonged siege that caused extreme supply problems. They were forced to retreat with heavy casualties. In 1082, Western Xia conquered Yongle, a Song fort on their borders. In 1083, 300,000 fire arrows were produced by the Song court and delivered to  two garrisons. Emperor Shenzong of Song died on 1 April 1085 and was succeeded by his son Zhao Xu, posthumously Emperor Zhezong of Song. Empress Gao became regent. Zhezong (r. 1085–1100). In 1098, the Western Xia retaliated against Song incursions but failed to defeat Song fortifications and sued for peace. Emperor Zhezong of Song died on 23 February 1100 and was succeeded by his brother Zhao Ji, posthumously Emperor Huizong of Song. Huizong (r. 1100–1126). The Song dynasty invaded Western Xia in 1003 and the war lasted for two years before ending inconclusively. In 1103, Hong Zhongfu reported that the  Khitans and Tanguts were using the iron from Chinese coins to make their weapons. He proposed adding lead and tin to the coins to make the barbarian weapons brittle and unusable. The proposal was approved. In 1104, the Song dynasty annexed Tsongkha, a Tibetan polity on their western borders. In 1110, the Song army put on a firework display for the emperor including a spectacle which opened with "a noise like thunder" and explosives that light up the night. Considered by some to be the first mention of gunpowder fireworks. The Song invaded Western Xia again in 1113. The war  ended inconclusively in 1119. In 1119, Song Jiang rebelled in Jingdong Circuit. He was suppressed in 1121. In 1120, Fang La rebelled in Liangzhe Circuit and was suppressed. In 1123, the Song invaded the Liao dynasty but was repelled. Zhang Jue rebelled in Pingzhou and defected to the Song but the Jin dynasty immediately retaliated and crushed his army. Zhang Jue was executed by the Song as reconciliation towards the Jin. In November 1125, the Jin dynasty invaded the Song and occupied Shanxi and Hebei, beginning the first of the Jin–Song Wars. On 18 January 1126, Emperor Huizong of  Song abdicated to his son Zhao Huan, who succeeded him as Emperor Qinzong of Song. Qinzong (r. 1126–1127). On 31 January 1126, the Jin dynasty laid siege to Kaifeng. Thunderclap bomb as well as fire arrows and fire bombs were used in the defense by Song troops. The Jin army retreated from Kaifeng after the Song promised to pay an annual indemnity. In June, the Jin defeated two Song armies. In December, the Jin returned with fire arrows and gunpowder bombs to lay siege to Kaifeng. On 12 June 1127, Emperor Qinzong of Song's brother Zhao Gou was declared  Emperor Gaozong of Song and the capital was moved to Lin'an. Southern Song. Gaozong (r. 1127–1129, 1129–1162). In December 1127, Kaifeng fell to the Jin dynasty and emperors Qinzong and Huizong were captured; territory north of the Huai River was annexed by the Jin. This would come to be known as the Jingkang Incident. This was the earliest recorded use of "molten metal bombs", suspected to contain gunpowder. The earliest extant depiction of a cannon appeared among the Dazu Rock Carvings, completed in 1128, one of which is a human figure holding a gourd shaped hand cannon. In 1129, Song  warships were outfitted with trebuchets and supplies of gunpowder bombs. In 1130, Jin forces were ambushed at the Battle of Huangtiandang and forced to stop at the Yangtze for some time before making the crossing. Zhong Xiang rebelled in Hunan and was not suppressed until 1135. In 1131, Jin forces invaded Shaanxi but were repelled, in particular by a volley fire tactic implemented by general Wu Jie (吳 玠) and his younger brother Wu Lin (吳璘). Li Cheng rebelled in Huainan and was suppressed. The Song established China's first standing navy. In 1132, Jin forces laid siege to De'an . In the Siege of De'an, fire lances were used by Song troops to repel the invaders. In the same year, gunpowder was referred to specifically for its military applications for the first time: "fire bomb medicine" rather than "fire medicine". Firecrackers using gunpowder were mentioned for the first time. In 1133, the Jin puppet state of Qi invaded the Song but was repelled by Yue Fei. In 1135, Qi captured Xiangyang, but Yue Fei retaliated and recaptured the lost territory. In 1136, Qi invaded Song territory again but was repelled. In 1140, the Jin invaded the Song and were repelled  by Yue Fei at the Battle of Yancheng. However Yue Fei was ordered to retreat by Emperor Gaozong of Song in fear of further conflict with the Jin. Yue Fei was arrested and executed on 27 January 1142. In October 1142, the Song and Jin agreed to the Treaty of Shaoxing which stipulated that the Song must pay Jin an annual indemnity; the Huai River was settled as the boundary between the two states. On 28 October 1161, the Jin invaded the Song again. The forces led by Wanyan Liang easily defeated the Song forces and closed in on the  Changjiang. However, using new fire arrows and thunderclap bombs, the Song dealt devastating losses to the Jin fleet at the Battle of Tangdao on 16 November and the Battle of Caishi on 27 November. On 24 July 1162, Gaozong abdicated to his adopted son Zhao Bocong, posthumously Emperor Xiaozong of Song. Wanlan Liang ambushed the forces of Wu Lin while they were retreating and defeated them. Xiaozong (r. 1162–1189). In the summer of 1163, Zhang Jun attacked the Jin using fire lance carts, but suffered defeat. In 1165, the Song and Jin agreed to peace and a return to status  quo. In 1170, the Song occupied the Penghu Islands. On 18 February 1189, Emperor Xiaozong of Song abdicated to his son Zhao Dun, posthumously Emperor Guangzong of Song. Guangzong (r. 1189–1194). Emperor Guangzong of Song was an awful ruler and was forced to abdicate on 24 July 1194 to his son Zhao Kuo, posthumously Emperor Ningzong of Song. Ningzong (r. 1194–1224). In 1195, rebellion broke out in Sichuan. In 1204, Song forces began displaying military aggression on the Jin border. In June 1206, the Song declared war on the Jin. In December, the governor-general of Sichuan, Wu Xi, defected  to the Jin, but he was killed on 29 March 1207 by loyalists. Thunderclap bombs were employed by Song forces in a sneak attack on a Jin camp, killing 2,000 men and 800 horses. The war entered a stalemate in April 1207 and on 2 November 1208, the two sides agreed to restore the former status quo with the Song returning to tributary status. In 1208, a rebellion by the Yao people occurred in Jinghu and was suppressed. A rebellion in Sichuan also occurred. In 1210, a rebellion occurred in Jinghu and was suppressed. In 1211, a rebellion occurred in  Sichuan. In 1214, Jin forces raided Song territory. In the spring of 1217, the Jin dynasty invaded the Song but was repelled. A rebellion broke out in Sichuan. In 1219, the Jin invaded the Song and was repelled. A rebellion broke out in Sichuan and was suppressed. In 1220, a rebellion occurred in Sichuan. In 1221, the Jin dynasty invaded the Song. They brought with them iron casing bombs which were employed in the siege of Qi Prefecture (Hubei). They were ultimately repelled. On 17 September 1224, Ningzong died and was succeeded by his adopted son Zhao Yun, posthumously Emperor  Lizong of Song. The Song and Jin made peace in the same year. Lizong (r. 1224–1264). In 1230, co-viative projectiles were added to fire lances. In 1231, Song patrols killed a Mongol envoy. In retaliation the Mongols raided Sichuan. In the summer of 1233, the Song army took advantage of the Mongol invasion of the Jin dynasty, and attacked the Jin as well. In 1234, a Song army was annihilated by the Mongols at Luoyang. In 1235, Mongols raided Song territory. In 1236, Mongols routed Song forces in Sichuan. In 1237, Mongols employed large bombs requiring several hundred men  to hurl using trebuchets in the siege of Anfeng (modern Shouxian, Anhui Province). In 1238, counterattacks by Song forces forced the Mongols to withdraw. In 1242 and 1243, Mongols raided Sichuan. In 1244, Mongols raided Huainan. In 1245, Mongols occupied Shouzhou. Rockets were used during a military exercise conducted by the Song navy. In 1246, Mongols raided Huainan. In 1252, Mongol forces under the Chinese general Wang Dechen advanced into Sichuan and occupied Lizhou. In the summer of 1256, Möngke Khan declared war on the Song, citing imprisonment of Mongol envoys as casus belli. In 1257, 333 "fire emitting tubes  were produced in a Song arsenal in Jiankangzhou (Nanjing, Jiangsu). In 1258, Mongol forces captured Chengdu. In January 1259, Mongol forces captured Yazhou. Möngke Khan laid siege to Diaoyu Castle from February to July and retreated. He died on 12 August from a wound inflicted by a Song trebuchet, forcing Mongol forces to withdraw from Song territory. According to the History of Song", in 1259, a "fire-emitting lance" employed a pellet wad projectile which occluded the barrel. Some consider this to be the first bullet. On 22 February 1262, Mongol-allied warlord of Shandong, Li Tan, defected to the  Song dynasty In August, Kublai Khan's Chinese generals Shi Tianze and Shi Chu crushed Li Tan's forces and captured him; Li Tan was trampled to death by horses In 1264, Emperor Lizong of Song died and was succeeded by his nephew Zhao Qi, posthumously Emperor Duzong of Song. Duzong (r. 1264–1274). In 1265, Song and Mongol forces clashed in Sichuan. In 1268, Aju of the Mongols laid siege to Xiangyang. In 1271, Kublai Khan declared himself emperor of the Yuan dynasty. In 1272, riverine relief forces used fire lances to repel boarders and broke the Mongol blockade of  Xiangyang. In March 1273, Lü Wenhuan surrendered Xiangyang to Yuan. On 12 August 1274, Emperor Duzong of Song died and was succeeded by his son Zhao Xian, posthumously Emperor Gong of Song; Xie Daoqing became regent. Gong (r. 1274–1276). In January 1275, Bayan's forces crossed the Yangtze at Hankou and in March met Jia Sidao in battle at Dingjiaozhou, annihilating his force using artillery equipment, conquering the Hanshui region. On 22 March 1276, Lin'an surrendered to the Mongols and Emperor Gong of Song was eventually moved to Dunhuang where he raised a family and became a monk. On 14  June, loyalists enthroned Zhao Shi, the former emperor's brother, posthumously known as Emperor Duanzong of Song. Duanzong (r. 1276–1278). In 1276, Mongol forces defeated a Song army near modern Guichi District. Arigh Kaya conquered Hunan and Guangxi while Sodu occupied Fuzhou. At this point, reusable fire lance barrels made of metal were employed by the Song army. In April 1277, the Muslim superintendent of Quanzhou, Pu Shougeng, defected to Yuan. In 1278, Sodu occupied Guangzhou. On 9 May 1278, Duanzong died in Guangnan and was succeeded by his brother Zhao Bing. Zhao Bing (r. 1278–1279). On 19 March 1279 , the Mongol fleet annihilated the Song fleet at the Battle of Yamen. Zhao Bing died at sea; so ended the Song dynasty. Organization. Army. In the year 960 the Song military had 378,000 enlisted soldiers. Around the turn of the 11th century its size had grown to 900,000 soldiers, increasing to 1,000,000 by the year 1022, and well over 1,250,000 by 1041. The overall expenses of upholding a military of this size consumed three-quarters of the state's entire annual revenue. To lessen the expense, in 1069 the Chancellor Wang Anshi created the institution of local militias as supporting  units. In 1073, Wang Anshi created a new bureau of the central government called the Directorate of Weapons, which supervised the manufacture of armaments and ensured quality control. The Northern Song military was headed by the Bureau of Military Affairs, the highest level of military administration. Executive officials of the Bureau of Military Affairs were second in position only to the chief councilors. While officially the highest functioning military organ, the Bureau of Military Affairs co-existed with the Three Capital Guards: the Palace Command, the Metropolitan Cavalry Command, and the Metropolitan Infantry Command. Together these two systems served as  a mutual check and restraint on each other. Because of the Song's promotion of civil government, the Bureau of Military Affairs became increasingly occupied by civil officials. By the reign of Emperor Zhenzong of Song (r. 8 May 997 – 23 March 1022), only 34 percent of senior officials in the Bureau were military officers. The emperor himself did not directly lead the military. Technically, the Northern Song maintained a system of three different levels of armies: the upper imperial armies, middle imperial armies, and lower imperial armies. The upper imperial armies alone consisted of four separate armies. However, after  the beginning of Emperor Taizong of Song's reign (r. 15 November 976 – 8 May 997), military organization was localized to the commandery level for all practical troop movements, fortifications, and battles. Generals and commandery units were deliberately kept apart and unfamiliar with each other to prevent rebellion. The Song dynasty did not have military conscription but rather recruited through volunteers. The strong and fit were sent to the capital as models and guides for other soldiers. Soldiers were required to tattoo their faces or arms with the designation of their military unit. Infantry units were organized 50 men to  a platoon, two platoons to a company, and five companies to a battalion. During the Northern Song, half of the entire army of 1 million was stationed in and around Kaifeng. The remaining troops were posted in scattered forces along borders and near large municipalities, and in peacetime were used as means to maintain local security. Prefectural armies were created as reserves. They received no military training and were mainly used for industrial labor such as wall and road repair, river dike building, bridge construction, and transportation. Song crossbowmen constituted their own separate units apart from the infantry, and according  to the Chinese "Wujing Zongyao" military manuscript of 1044, the crossbow used in mass was the most effective weapon used against northern nomadic cavalry charges. Elite crossbowmen were also valued as long-range snipers; such was the case when the Liao general Xiao Talin was picked off by a Song crossbow at the Battle of Shanzhou in 1004. Crossbows were mass-produced in state armories with designs improving as time went on, such as the use of a mulberry wood and brass crossbow in 1068 that could pierce a tree at 140 paces. Song cavalry used an array of different  weapons, including halberds, swords, bows, and fire lances that discharged a gunpowder blast of flame and shrapnel. In preparation for war, government armories manufactured weapons in enormous quantities, with tens of millions of arrowheads crafted each year, along with armor components by the tens of thousands. There were sixteen known varieties of catapults in the Song period, designed to fit many different proportions and requiring work crews in sizes ranging from dozens to several hundred men. For a number of reasons such as corruption, focus on civil government, and distrust of the military, the Song army was generally ineffective despite  the empire's material wealth. While the culture of the Song dynasty abhorred military subjects, its bureaucracy also codified and implemented new standards for soldiers. The military examination was observed and elite soldiers were allocated different responsibilities based on examination of their individual capabilities. The "History of Song" notes that the Song army had access to new weapons such as gunpowder bombs and arrows, good armour, and were well supplied with traditional arms, but its military performance in practice still left much to be desired. Cavalry. The Song dynasty did not possess much in the way of warhorses. Without the  horse-producing lands of the northwest, the Song managed to raise 200,000 horses during the reign of Emperor Zhenzong of Song and 150,000 during the reign of Emperor Shenzong of Song, down from 700,000 during the height of the Tang dynasty. To supplement their cavalry, the Song bought every year ten to forty thousand horses from the northwest and southwest borderlands. The Dali Kingdom's horses were highly prized and sought after as military assets, especially after the fall of the Northern Song. They were described by a Song official in the following passage: Due to the lack of their  own cavalry forces, the Song army usually had to rely on anti-cavalry infantry equipped with "horse-butchering sabres", large axes, and crossbows to overcome the Khitans and Jurchens. Tribal Auxiliaries. The Song military included auxiliary forces drawn from frontier ethnic groups. Tribal families under Song rule was referred to as "Shuhu". The chief of the tribe was designated as Supreme Unit Master or "dujunzhu" and smaller tribe leaders were designated commanders ("fanguan"). Command was hereditary in accordance with tribal customs of chieftainship. The Song government issued them with land. Deployment was permanent and never rotated unlike regular army forces , and promotion or demotion was restricted to the internal structure of each unit. Their promotions were also restricted to Prefect and Garrison-General at the highest level unlike regular officers. In 1017, the "fanluo" battalions of tribal warriors were formed as part of the Central Imperial Palace army and used to suppress the rebellion of Nong Zhigao in Guangxi. There was strong court resistance to the idea of tribal officers outranking Han Chinese officers, and the government wavered back-and-forth on the policy of permitting this. The tribal auxiliaries were described by both Song sources and their enemies as  highly effective. Tribal auxiliaries included "Western soldiers" ("fanbing"), drawn from Tibetan and Tangut tribes along the northwestern frontier. These tribes defected to the Song due to inter-tribal conflict and played an essential role in Song defence policy due to the large numbers of cavalry they provided. The Song dynasty took great effort to maintain cordial ties with them. However unlike previous dynasties these forces were restricted to the localities from which they were drawn, rather than deployed to other fronts. The Song elite avoided the multi-ethnic military command structure of the Tang dynasty that preceded it as this  was viewed as having led to the devastating An Lushan Rebellion (started by a military governor of foreign descent) that caused the dynasty's decline and collapse. This made the Song reluctant to rely on non-Han Chinese for any purposes. The Song dynasty did not model its military infrastructure and organization on the precedent of northern nomadic armies, such as the earlier Xianbei and later Mongols. Only twice in the Song era were steppe people employed in Song cavalry units: in the beginning of the dynasty with the campaigns of Emperor Taizu who employed Kumo Xi horse archers, and  later 13th century Mongol defectors who came over to fight for the Song. Navy. The Song dynasty founder, Emperor Taizu of Song, who had served as an army officer, attached great importance to ship building. He often visited the shipyard. After the dynasty's founding, and the role the navy played in defeating Later Shu and Southern Tang, the dynasty continued to maintain substantial naval forces for a time. However, after the unsuccessful invasion of Dai Viet in 981, the Song gradually lost interest in the navy, although Guangnan Circuit maintained a "Convoy Escort Squadron" ("jiagang shuijun") which accompanied and  protected incoming and outgoing merchant ships. By 987, the navy had become an ornamental establishment used for water entertainment. In 1068, the navy was reorganized, and after the Lý–Song War in 1077, the government asked merchants to contribute ships as well. Two shipyards were constructed in Mingzhou and Wenzhou. In 1090, these two shipyards were tasked with constructing 600 ships annually while shipyards in Liangzhe and Huainan received orders to build 300 ships. However the naval authorities deemed these ships to be of inferior quality and resorted to hiring and borrowing private vessels. This proved to be unsustainable and  the practice was prohibited in 1112. After the loss of the north in 1127, the Song established a standing naval force to guard the region between the Huai River and the Changjiang. The Imperial Commissioner for the Control and Organization of the Coastal Areas ("yanhai zhizhi shisi") was established in Dinghai county in 1132 with 11 squadrons and 3,000 men under its command. The Song fleet capacity increased to 15 squadrons and 21,000 men by 1174, and 20 squadrons and 52,000 men by 1237. In 1167, another base was established at Xupu to guard the Changjiang and the village that  would become Shanghai. The Song government ran into problems with funding so they paid merchants and constructors with "monk certificates" ("dudie") to purchase ships. Honorary ranks and titles were also given in return for ships. Sometimes the ships were taken by force which eventually resulted in many merchants defecting to the Yuan dynasty. Some of the merchant vessels called in by the government were quite large with a beam of 30 feet. These converted ships were known as "Whales." "Whale-head" ships with a capacity of 2,000 "liao" were also built in government shipyards. The average combat ships of the  Song dynasty tended to be smaller with standard 400 "liao" galleys known as "Sea Hawks" reaching 80 feet in length, 20 feet in breadth, and able to carry 200 men-at-arms. Some Sea Hawks built later on in the dynasty were much larger. In 1169, some were built with a capacity of 800 "liao" and in 1203, up to 1,000 "liao". The large Sea Hawks of 1203 were equipped with iron rams. In comparison, the coastal defense fleet of the Ming dynasty only had ships up to 700 "liao" in capacity. Many of the warships in the Song navy  were paddle-wheel driven crafts. In 1132, a Song minister compared paddle-wheel ships to infantry while Whale-head ships were the cavalry. The Song period also saw the first ships armed with gunpowder weapons such as bombs and fire arrows. The use of enormous pontoon bridges in the Song era on at least one occasion was essential to victory. The Song built a large floating bridge across the Changjiang in 974; while troops were under attack, the pontoon bridge was used as a means of transport for troops and supplies to the other bank during the early Song conquest  of the Southern Tang state. Weapons production. Weapons production was handled through the Armaments Section of the Salt and Iron Monopoly Bureau of the State Finance Commission. However the Armaments Section was abolished during the reign of Emperor Shenzong of Song and replaced with the Directorate for Armaments. Other organizations such as the Armaments Office were also responsible for weapons production. The primary production facilities were located in Kaifeng. There, body armour was produced by the Southern and Northern Workshops (later the Eastern and Western Workshops) while bows and crossbows were produced by the Bow Workshop and Bow and Arrow  Workshop. Siege machinery was produced at the Siege Provisioning Workshop. At its height during the Northern Song period, the Bow Workshop had under its employ 1,042 weapons makers, the Bow and Arrow Workshop 1,071 weapons makers, the Southern Workshop 3,741 craftsmen, and the Northern Workshop 4,190 craftsmen. The Southern and Northern Workshops were further divided into the Wood Shop, the Horse Armour Shop, and the Sword-Sharpening Shop. The Siege Provisioning Workshop was also responsible for gunpowder and flamethrower weapons in addition to other siege weapons. In total, the Northern Song dynasty was able to produce every year 32,000 items  of iron armour and 22.7 million bows, crossbows, and arrows. Logistics. According to Song laws and regulations, camels could carry 150 kg each, horses and mules 165 kg, and donkeys 110 kg. If one soldier could carry 66 kg of food with three food porters, that would last them 31 days. Armour. During the Song dynasty (960–1279) it became fashionable to create warts on pieces of armour to imitate cold forged steel, a product typically produced by non-Han people in modern Qinghai. Warts created from cold work were actually spots of higher carbon in the original steel, thus aesthetic  warts on non-cold forged steel served no purpose. According to Shen Kuo, armour constructed of cold forged steel was impenetrable to arrows shot at a distance of 50 paces. Even if the arrow happened to hit a drill hole, the arrowhead was the one which was ruined. However crossbows were still prized for their ability to penetrate heavy armour. The "History of Song" notes that Song "tools of war were exceedingly effective, never before seen in recent times," and "their weapons and armor were very good", but "their troops weren't always effective." Crossbows. Countermarch. The "Wujing Zongyao", written  during the Song dynasty, notes that during the Tang period, crossbows were not used to their full effectiveness due to the fear of cavalry charges. The author's solution was to drill the soldiers to the point where rather than hide behind shieldbearers upon the approach of enemy soldier, they would "plant the feet like a firm mountain, and, unmoving at the front of the battle arrays, shoot thickly to the middle [of the enemy], and none among them will not fall down dead." The Song volley fire formation was described thus: "Those in the center of the formation should  load while those on the outside of the formation should shoot, and when [the enemy gets] close, then they should shelter themselves with small shields [literally side shields, 旁牌], each taking turns and returning, so that those who are loading are within the formation. In this way the crossbows will not cease sounding." In addition to the Tang formation, the Song illustration also added a new label to the middle line of crossbowmen between the firing and reloading lines, known as the "advancing crossbows." Both Tang and Song manuals also made aware to the reader that "the accumulated arrows should  be shot in a stream, which means that in front of them there must be no standing troops, and across [from them] no horizontal formations." The volley fire technique was used to great effect by the Song during the Jin-Song Wars. In the fall of 1131 the Jin commander Wuzhu (兀朮) invaded the Shaanxi region but was defeated by general Wu Jie (吳 玠) and his younger brother Wu Lin (吳璘). The "History of Song" elaborates on the battle in detail: After losing half his army Wuzhu escaped back to the north, only to invade again in the following  year. Again, he was defeated while trying to breach a strategic pass. The "History of Song" states that during the battle Wu Jie's brother Wu Lin "used the Standing-Firm Arrow Teams, who shot alternately, and the arrows fell like rain, and the dead piled up in layers, but the enemy climbed over them and kept climbing up." This passage is especially noteworthy for its mention of a special technique being utilized as it is one of the very few times that the "History of Song" has elaborated on a specific tactic. Mounted crossbow. Large mounted crossbows known as  bed crossbows were used as early as the Warring States period. Mozi described them as defensive weapons placed on top the battlements. The Mohist siege crossbow was described as humongous device with frameworks taller than a man and shooting arrows with cords attached so that they could be pulled back. By the Han dynasty, crossbows were used as mobile field artillery and known as "Military Strong Carts". Around the 5th century AD, multiple bows were combined to increase draw weight and length, thus creating the double and triple bow crossbows. Tang versions of this weapon are stated to have obtained  a range of 1,160 yards, which is supported by Ata-Malik Juvayni on the use of similar weapons by the Mongols in 1256. According Juvayni, Hulagu Khan brought with him 3,000 giant crossbows from China, for the siege of Nishapur, and a team of Chinese technicians to work a great 'ox bow' shooting large bolts a distance of 2,500 paces, which was used at the siege of Maymun Diz. Constructing these weapons, especially the casting of the large triggers, and their operation required the highest order of technical expertise available at the time. They were primarily used from the 8th  to 11th centuries. Joseph Needham on the range of the triple-bow crossbow: Gunpowder weapons. Gunpowder formula. The earliest surviving chemical formula of gunpowder dates to 1044 in the form of the military manual "Wujing Zongyao", also known in English as the "Complete Essentials for the Military Classics", which contains a collection of factoids on Chinese weaponry. The "Wujing Zongyao" served as a repository of antiquated or fanciful weaponry, and this applied to gunpowder as well, suggesting that it had already been weaponized long before the invention of what would today be considered conventional firearms. These types of gunpowder weapons  styles an assortment of odd names such as "flying incendiary club for subjugating demons", "caltrop fire ball", "ten-thousand fire flying sand magic bomb", "big bees nest", "burning heaven fierce fire unstoppable bomb", "fire bricks" which released "flying swallows", "flying rats", "fire birds", and "fire oxen". Eventually they gave way and coalesced into a smaller number of dominant weapon types, notably gunpowder arrows, bombs, and guns. This was most likely because some weapons were deemed too onerous or ineffective to deploy. Fire arrow. The first fire arrows (huǒyào 火藥) were arrows strapped with gunpowder incendiaries, but in 969 two Song  generals, Yue Yifang and Feng Jisheng (馮繼升), invented a variant fire arrow which utilized gunpowder tubes as propellants. Afterwards fire arrows started transitioning to rocket propelled weapons rather than being fired from a bow. These fire arrows were shown to the emperor in 970 when the head of a weapons manufacturing bureau sent Feng Jisheng to demonstrate the gunpowder arrow design, for which he was heavily rewarded. In 975, the state of Wuyue sent to the Song dynasty a unit of soldiers skilled in the handling of fire arrows. In the same year, the Song dynasty used fire arrows and  incendiary bombs to destroy the fleet of Southern Tang. In 994, the Liao dynasty attacked the Song and laid siege to Zitong with 100,000 troops. They were repelled with the aid of fire arrows. In 1000 a soldier by the name of Tang Fu (唐福) also demonstrated his own designs of gunpowder arrows, gunpowder pots (a proto-bomb which spews fire), and gunpowder caltrops, for which he was richly rewarded as well. The imperial court took great interest in the progress of gunpowder developments and actively encouraged as well as disseminated military technology. For example, in 1002 a local militia  man named Shi Pu (石普) showed his own versions of fireballs and gunpowder arrows to imperial officials. They were so astounded that the emperor and court decreed that a team would be assembled to print the plans and instructions for the new designs to promulgate throughout the realm. The Song court's policy of rewarding military innovators was reported to have "brought about a great number of cases of people presenting technology and techniques" (器械法式) according to the official "History of Song". Production of gunpowder and fire arrows heavily increased in the 11th century as the court centralized the production  process, constructing large gunpowder production facilities, hiring artisans, carpenters, and tanners for the military production complex in the capital of Kaifeng. One surviving source circa 1023 lists all the artisans working in Kaifeng while another notes that in 1083 the imperial court sent 100,000 gunpowder arrows to one garrison and 250,000 to another. Evidence of gunpowder in the Liao dynasty and Western Xia is much sparser than in Song, but some evidence such as the Song decree of 1073 that all subjects were henceforth forbidden from trading sulfur and saltpeter across the Liao border, suggests that the Liao were aware  of gunpowder developments to the south and coveted gunpowder ingredients of their own. Flamethrower. The Chinese flamethrower, known as the Fierce-fire Oil Cabinet, was recorded to have been used in 976 AD when Song naval forces confronted the Southern Tang fleet on the Changjiang. 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. The flamethrower was a well known device by the 11th century when it was joked that Confucian scholars knew it better than the classics. Both gunpowder and the fierce  fire oil were produced under the Arsenals Administration of the Song dynasty. In the early 12th century AD, Kang Yuzhi recorded his memories of military commanders testing out fierce oil fire on a small lakelet. They would spray it about on the opposite bank that represented the enemy camp. The flames would ignite into a sheet of flame, destroying the wooden fortifications, and even killing the water plants, fishes and turtles. In 1126 AD, Li Gang used flamethrowers in an attempt to prevent the Jurchens from crossing the Yellow River. Illustrations and descriptions of mobile flamethrowers on four-wheel push  carts were documented in the "Wujing Zongyao", written in 1044 AD (its illustration redrawn in 1601 as well). Explosives. The Jurchen people of Manchuria united under Wanyan Aguda and established the Jin dynasty in 1115. Allying with the Song, they rose rapidly to the forefront of East Asian powers and defeated the Liao dynasty in a short span of time. Remnants of the Liao fled to the west and became known as the Qara Khitai, or Western Liao to the Chinese. In the east, the fragile Song-Jin alliance dissolved once the Jin saw how badly the Song army had  performed against Liao forces. The Jin grew tired of waiting and captured all five of the Liao capitals themselves. They proceeded to make war on Song, initiating the Jin-Song Wars. This was the first time two major powers would have access to equally formidable gunpowder weapons. Initially the Jin expected their campaign in the south to proceed smoothly given how poorly the Song had fared against the Liao. However they were met with stout resistance upon besieging Kaifeng in 1126 and faced the usual array of gunpowder arrows and fire bombs, but also a weapon called the "thunderclap bomb  (霹靂炮), which one witness wrote, At night the thunderclap bombs were used, hitting the lines of the enemy well, and throwing them into great confusion. Many fled, screaming in fright." The thunderclap bomb was previously mentioned in the "Wujing Zongyao", but this was the first recorded instance of its use. Its description in the text reads thus: Jin troops withdrew with a ransom of Song silk and treasure but returned several months later with their own gunpowder bombs manufactured by captured Song artisans. According to historian Wang Zhaochun, the account of this battle provided the "earliest truly detailed descriptions of  the use of gunpowder weapons in warfare." Records show that the Jin utilized gunpowder arrows and trebuchets to hurl gunpowder bombs while the Song responded with gunpowder arrows, fire bombs, thunderclap bombs, and a new addition called the "molten metal bomb" (金汁炮). As the Jin account describes, when they attacked the city's Xuanhua Gate, their "fire bombs fell like rain, and their arrows were so numerous as to be uncountable." The Jin captured Kaifeng despite the appearance of the molten metal bomb and secured another 20,000 fire arrows for their arsenal. The molten metal bomb appeared again in 1129  when Song general Li Yanxian (李彥仙) clashed with Jin forces while defending a strategic pass. The Jin assault lasted day and night without respite, using siege carts, fire carts, and sky bridges, but each assault was met with Song soldiers who "resisted at each occasion, and also used molten metal bombs. Wherever the gunpowder touched, everything would disintegrate without a trace." Fire lance. The fire lance, as implied by the name, is essentially a long spear or pole affixed with a tube of gunpowder, and as it saw more usage, the tube's length became longer and pellets were added  to the composition. The earliest confirmed employment of the fire lance in warfare was by Song dynasty forces against the Jin in 1132 during the siege of De'an (modern Anlu, Hubei Province). The Jin attacked with wooden siege towers called "sky bridges": "As the sky bridges became stuck fast, more than ten feet from the walls and unable to get any closer, [the defenders] were ready. From below and above the defensive structures they emerged and attacked with fire lances, striking lances, and hooked sickles, each in turn. The people [i.e., the porters] at the base of the sky bridges  were repulsed. Pulling their bamboo ropes, they [the porters] ended up drawing the sky bridge back in an anxious and urgent rush, going about fifty paces before stopping." The surviving porters then tried once again to wheel the sky bridges into place but Song soldiers emerged from the walls in force and made a direct attack on the sky bridge soldiers while defenders on the walls threw bricks and shot arrows in conjunction with trebuchets hurling bombs and rocks. The sky bridges were also set fire to with incendiary bundles of grass and firewood. Li Heng, the Jin commander, decided  to lift the siege and Jin forces were driven back with severe casualties. The siege of De'an marks an important transition and landmark in the history of gunpowder weapons as the fire medicine of the fire lances were described using a new word: "fire bomb medicine" (火炮藥), rather than simply "fire medicine." This could imply the use of a new more potent formula, or simply an acknowledgement of the specialized military application of gunpowder. Peter Lorge suggests that this "bomb powder" may have been corned, making it distinct from normal gunpowder. Evidence of gunpowder firecrackers also points to their appearance  at roughly around the same time fire medicine was making its transition in the literary imagination. Fire lances continued to be used as anti-personnel weapons into the Ming dynasty, and were even attached to battle carts on one situation in 1163. Song commander Wei Sheng constructed several hundred of these carts known as "at-your-desire-war-carts" (如意戰車), which contained fire lances protruding from protective covering on the sides. They were used to defend mobile trebuchets that hurled fire bombs. Naval bombs. Gunpowder technology also spread to naval warfare and in 1129 Song decreed that all warships were  to be fitted with trebuchets for hurling gunpowder bombs. Older gunpowder weapons such as fire arrows were also utilized. In 1159 a Song fleet of 120 ships caught a Jin fleet at anchor near Shijiu Island (石臼島) off the shore of Shandong peninsula. The Song commander "ordered that gunpowder arrows be shot from all sides, and wherever they struck, flames and smoke rose up in swirls, setting fire to several hundred vessels." Song forces took another victory in 1161 when Song paddle boats ambushed a Jin transport fleet, launched thunderclap bombs, and drowned the Jin force in the Yangtze. According  to a minor military official by the name of Zhao Wannian (趙萬年), thunderclap bombs were used again to great effect by the Song during the Jin siege of Xiangyang in 1206–1207. Both sides had gunpowder weapons, but the Jin troops only used gunpowder arrows for destroying the city's moored vessels. The Song used fire arrows, fire bombs, and thunderclap bombs. Fire arrows and bombs were used to destroy Jin trebuchets. The thunderclap bombs were used on Jin soldiers themselves, causing foot soldiers and horsemen to panic and retreat. "We beat our drums and yelled from atop the city wall , and simultaneously fired our thunderclap missiles out from the city walls. The enemy cavalry was terrified and ran away." The Jin were forced to retreat and make camp by the riverside. In a rare occurrence, the Song made a successful offensive on Jin forces and conducted a night assault using boats. They were loaded with gunpowder arrows, thunderclap bombs, a thousand crossbowmen, five hundred infantry, and a hundred drummers. Jin troops were surprised in their encampment while asleep by loud drumming, followed by an onslaught of crossbow bolts, and then thunderclap bombs, which caused a panic of such magnitude that  they were unable to even saddle themselves and trampled over each other trying to get away. Two to three thousand Jin troops were slaughtered along with eight to nine hundred horses. Competing with gunpowder empires. Hard-shell explosives. Traditionally the inspiration for the development of the iron bomb is ascribed to the tale of a fox hunter named Iron Li. According to the story, around the year 1189 Iron Li developed a new method for hunting foxes which used a ceramic explosive to scare foxes into his nets. The explosive consisted of a ceramic bottle with a mouth, stuffed with  gunpowder, and attached with a fuse. Explosive and net were placed at strategic points of places such as watering holes frequented by foxes, and when they got near enough, Iron Li would light the fuse, causing the ceramic bottle to explode and scaring the frightened foxes right into his nets. While a fanciful tale, it's not exactly certain why this would cause the development of the iron bomb, given the explosive was made using ceramics, and other materials such as bamboo or even leather would have done the same job, assuming they made a loud enough noise. The invention  of hard shell explosives did not occur in the Song dynasty. Instead it was introduced to them by the northern Jurchen Jin dynasty in 1221 during the siege of Qizhou (in modern Hubei province). The Song commander Zhao Yurong (趙與褣) survived and was able to relay his account for posterity. Qizhou was a major fortress city situated near the Yangtze and a 25 thousand strong Jin army advanced on it in 1221. News of the approaching army reached Zhao Yurong in Qizhou, and despite being outnumbered nearly eight to one, he decided to hold the city. Qizhou's arsenal consisted  of some three thousand thunderclap bombs, twenty thousand "great leather bombs" (皮大炮), and thousands of gunpowder arrows and gunpowder crossbow bolts. While the formula for gunpowder had become potent enough to consider the Song bombs to be true explosives, they were unable to match the explosive power of the Jin iron bombs. Yurong describes the uneven exchange thus, "The barbaric enemy attacked the Northwest Tower with an unceasing flow of catapult projectiles from thirteen catapults. Each catapult shot was followed by an iron fire bomb [catapult shot], whose sound was like thunder. That day, the city soldiers in facing the  catapult shots showed great courage as they maneuvered [our own] catapults, hindered by injuries from the iron fire bombs. Their heads, their eyes, their cheeks were exploded to bits, and only one half [of the face] was left." Jin artillerists were able to successfully target the command center itself: "The enemy fired off catapult stones ... nonstop day and night, and the magistrate's headquarters [帳] at the eastern gate, as well as my own quarters ..., were hit by the most iron fire bombs, to the point that they struck even on top of [my] sleeping quarters and [I] nearly perished ! Some said there was a traitor. If not, how would they have known the way to strike at both of these places?" Zhao was able to examine the new iron bombs himself and described thus, "In shape they are like gourds, but with a small mouth. They are made with pig iron, about two inches thick, and they cause the city's walls to shake." Houses were blown apart, towers battered, and defenders blasted from their placements. Within four weeks all four gates were under heavy bombardment. Finally the Jin made a frontal assault on the walls and scaled them , after which followed a merciless hunt for soldiers, officers, and officials of every level. Zhao managed an escape by clambering over the battlement and making a hasty retreat across the river, but his family remained in the city. Upon returning at a later date to search the ruins, he found that the "bones and skeletons were so mixed up that there was no way to tell who was who." Eruptors and cannons. The early fire lance, considered to be the ancestor of firearms, is not considered a true gun because it did not include projectiles. Later on, shrapnel such as  ceramics and bits of iron were added, but these didn't occlude the barrel, and were only swept along with the discharge rather than make use of windage. These projectiles were called "co-viatives." The commonplace nature of the fire lance, if not in quantity, was apparent by the mid 13th century, and in 1257 an arsenal in Jiankang Prefecture reported the manufacture of 333 "fire emitting tubes" (突火筒). In 1259 a type of "fire-emitting lance" (突火槍) made an appearance and according to the "History of Song": "It is made from a large bamboo tube, and inside is stuffed  a pellet wad (子窠). Once the fire goes off it completely spews the rear pellet wad forth, and the sound is like a bomb that can be heard for five hundred or more paces." The pellet wad mentioned is possibly the first true bullet in recorded history depending on how bullet is defined, as it did occlude the barrel, unlike previous co-viatives used in the fire lance. Fire lances transformed from the "bamboo- (or wood- or paper-) barreled firearm to the metal-barreled firearm" to better withstand the explosive pressure of gunpowder. From there it branched off into several  different gunpowder weapons known as "eruptors" in the late 12th and early 13th centuries, with different functions such as the "filling-the-sky erupting tube" which spewed out poisonous gas and porcelain shards, the "orifice-penetrating flying sand magic mist tube" (鑽穴飛砂神霧筒) which spewed forth sand and poisonous chemicals into orifices, and the more conventional "phalanx-charging fire gourd" which shot out lead pellets. The character for lance, or spear (槍), has continued to refer to both the melee weapon and the firearm into modern China, perhaps as a reminder of its original form as simply a tube of gunpowder  tied to a spear. Traditionally the first appearance of the hand cannon is dated to the late 13th century, just after the Mongol conquest of the Song dynasty. However a sculpture depicting a figure carrying a gourd shaped hand cannon was discovered among the Dazu Rock Carvings in 1985 by Robin Yates. The sculptures were completed roughly 250 km northwest of Chongqing by 1128, after the fall of Kaifeng to the Jin dynasty. If the dating is correct this would push back the appearance of the cannon in China by a hundred years more than previously thought. The bulbous nature  of the cannon is congruous with the earliest hand cannons discovered in China and Europe. Archaeological samples of the gun, specifically the hand cannon (huochong), have been dated starting from the 13th century. The oldest extant gun whose dating is unequivocal is the Xanadu Gun, so called because it was discovered in the ruins of Xanadu, the Mongol summer palace in Inner Mongolia. The Xanadu Gun is 34.7 cm in length and weighs 6.2 kg. Its dating is based on archaeological context and a straightforward inscription whose era name and year corresponds with the Gregorian Calendar at 1298. Not only  does the inscription contain the era name and date, it also includes a serial number and manufacturing information which suggests that gun production had already become systematized, or at least become a somewhat standardized affair by the time of its fabrication. The design of the gun includes axial holes in its rear which some speculate could have been used in a mounting mechanism. Like most early guns with the possible exception of the Western Xia gun, it is small, weighing just over six kilograms and thirty-five centimeters in length. Although the Xanadu Gun is the most precisely dated gun  from the 13th century, other extant samples with approximate dating likely predate it. One candidate is the Heilongjiang hand cannon, discovered in 1970, and named after the province of its discovery, Heilongjiang, in northeastern China. It is small and light like the Xanadu gun, weighing only 3.5 kilograms, 34 cm (Needham says 35 cm), and a bore of approximately 2.5 cm. Based on contextual evidence, historians believe it was used by Yuan forces against a rebellion by Mongol prince Nayan in 1287. The History of Yuan states that a Jurchen commander known as Li Ting led troops armed with hand  cannons into battle against Nayan. The Ningxia gun was found in Ningxia Hui Autonomous Region by collector Meng Jianmin (孟建民). This Yuan dynasty firearm is 34.6 cm long, the muzzle 2.6 cm in diameter, and weighs 1.55 kilograms. The firearm contains a transcription reading, "Made by bronzesmith Li Liujing in the year Zhiyuan 8 (直元), ningzi number 2565" (銅匠作頭李六徑，直元捌年造，寧字二仟伍百陸拾伍號). Similar to the Xanadu Gun, it bears a serial number 2565, which suggests it may have been part of a series of guns manufactured. While the era name and date corresponds with the Gregorian Calendar at 1271 CE, putting it earlier  than both the Heilongjiang Hand Gun as well as the Xanadu Gun, but one of the characters used in the era name is irregular, causing some doubt among scholars on the exact date of production. Another specimen, the Wuwei Bronze Cannon, was discovered in 1980 and may possibly be the oldest as well as largest cannon of the 13th century: a 100 centimeter 108 kilogram bronze cannon discovered in a cellar in Wuwei, Gansu Province containing no inscription, but has been dated by historians to the late Western Xia period between 1214 and 1227. The gun contained an iron ball  about nine centimeters in diameter, which is smaller than the muzzle diameter at twelve centimeters, and 0.1 kilograms of gunpowder in it when discovered, meaning that the projectile might have been another co-viative. Ben Sinvany and Dang Shoushan believe that the ball used to be much larger prior to its highly corroded state at the time of discovery. While large in size, the weapon is noticeably more primitive than later Yuan dynasty guns, and is unevenly cast. A similar weapon was discovered not far from the discovery site in 1997, but much smaller in size at only 1.5 kg . Chen Bingying disputes this however, and argues there were no guns before 1259, while Dang Shoushan believes the Western Xia guns point to the appearance of guns by 1220, and Stephen Haw goes even further by stating that guns were developed as early as 1200. Sinologist Joseph Needham and renaissance siege expert Thomas Arnold provide a more conservative estimate of around 1280 for the appearance of the "true" cannon. Whether or not any of these are correct, it seems likely that the gun was born sometime during the 13th century. Late Song gunpowder weaponry. By the mid 13th century, gunpowder  weapons were available to both the Mongols and the Song. The Mongol war machine moved south and in 1237 attacked the Song city of Anfeng (modern Shouxian, Anhui Province) "using gunpowder bombs [huo pao] to burn the [defensive] towers." These bombs were apparently quite large. "Several hundred men hurled one bomb, and if it hit the tower it would immediately smash it to pieces." The Song defenders under commander Du Gao (杜杲) rebuilt the towers and retaliated with their own bombs, which they called the "Elipao," after a famous local pear, probably in reference to the shape of the weapon . Perhaps as another point of military interest, the account of this battle also mentions that the Anfeng defenders were equipped with a type of small arrow to shoot through eye slits of Mongol armor, as normal arrows were too thick to penetrate. In 1257 the Song official Li Zengbo was dispatched to inspect frontier city arsenals. Li considered an ideal city arsenal to include several hundred thousand iron bombshells, and also its own production facility to produce at least a couple thousand a month. The results of his tour of the border were severely disappointing and in one arsenal he  found "no more than 85 iron bomb-shells, large and small, 95 fire-arrows, and 105 fire-lances. This is not sufficient for a mere hundred men, let alone a thousand, to use against an attack by the ... barbarians. The government supposedly wants to make preparations for the defense of its fortified cities, and to furnish them with military supplies against the enemy (yet this is all they give us). What chilling indifference!" Fortunately for the Song, Möngke Khan died in 1259 and the war would not continue until 1269 under the leadership of Kublai Khan, but when it did  the Mongols came in full force. Blocking the Mongols' passage south of the Yangtze were the twin fortress cities of Xiangyang and Fancheng. What resulted was one of the longest sieges the world had ever known, lasting from 1268 to 1273. For the first three years the Song defenders had been able to receive supplies and reinforcements by water, but in 1271 the Mongols set up a full blockade with a formidable navy of their own, isolating the two cities. This didn't prevent the Song from running the supply route anyway, and two men with the surname Zhang did  exactly that. The Two Zhangs commanded a hundred paddle wheel boats, travelling by night under the light of lantern fire, but were discovered early on by a Mongol commander. When the Song fleet arrived near the cities, they found the Mongol fleet to have spread themselves out along the entire width of the Yangtze with "vessels spread out, filling the entire surface of the river, and there was no gap for them to enter." Another defensive measure the Mongols had taken was the construction of a chain, which stretched across the water. The two fleets engaged in combat and the  Song opened fire with fire-lances, fire-bombs, and crossbows. A large number of men died trying to cut through chains, pull up stakes, and hurl bombs, while Song marines fought hand to hand using large axes, and according to the Mongol record, "on their ships they were up to the ankles in blood." With the rise of dawn, the Song vessels made it to the city walls and the citizens "leapt up a hundred times in joy." In 1273 the Mongols enlisted the expertise of two Muslim engineers, one from Persia and one from Syria, who helped in the  construction of counterweight trebuchets. These new siege weapons had the capability of throwing larger missiles further than the previous traction trebuchets. One account records, "when the machinery went off the noise shook heaven and earth; every thing that [the missile] hit was broken and destroyed." The fortress city of Xiangyang fell in 1273. The next major battle to feature gunpowder weapons was during a campaign led by the Mongol general Bayan, who commanded an army of around two hundred thousand, consisting of mostly Chinese soldiers. It was probably the largest army the Mongols had ever utilized. Such an army was  still unable to successfully storm Song city walls, as seen in the 1274 Siege of Shayang. Thus Bayan waited for the wind to change to a northerly course before ordering his artillerists to begin bombarding the city with molten metal bombs, which caused such a fire that "the buildings were burned up and the smoke and flames rose up to heaven." Shayang was captured and its inhabitants massacred. Gunpowder bombs were used again in the 1275 Siege of Changzhou in the latter stages of the Mongol-Song Wars. Upon arriving at the city, Bayan gave the inhabitants an ultimatum: "if  you ... resist us ... we shall drain your carcasses of blood and use them for pillows." This didn't work and the city resisted anyway, so the Mongol army bombarded them with fire bombs before storming the walls, after which followed an immense slaughter claiming the lives of a quarter million. The war lasted for only another four years during which some remnants of the Song held up last desperate defenses. In 1277, 250 defenders under Lou Qianxia conducted a suicide bombing and set off a huge iron bomb when it became clear defeat was imminent. Of this, the "History of  Song" writes, "the noise was like a tremendous thunderclap, shaking the walls and ground, and the smoke filled up the heavens outside. Many of the troops [outside] were startled to death. When the fire was extinguished they went in to see. There were just ashes, not a trace left." So came an end to the Mongol-Song Wars, which saw the deployment of all the gunpowder weapons available to both sides at the time, which for the most part meant gunpowder arrows, bombs, and lances, but in retrospect, another development would overshadow them all, the birth of the gun. Military