Wars on the Frontiers
Shenzong meant his stronger state to win back ground on the frontiers. In 1072 and 1073 the general Wang Shao campaigned in the Xihe region of modern Gansu, bringing territory on the western border under Song control. In 1075 the Vietnamese kingdom of Dai Viet attacked the southern frontier, and a Song counter-invasion in 1076 and 1077 ended without a decisive result.
The main target was the Western Xia, the Tangut state on the Song north-west frontier. The great offensive of 1081 failed, and in 1082 a Song army was destroyed at the newly built fortress of Yongle. The Western Xia remained a threat to the Song for decades afterwards.
Scholarship and Science
Some of the greatest works of the reign came from the reforms' opponents. Sima Guang's Zizhi Tongjian, the Comprehensive Mirror in Aid of Governance, which the emperor named, was completed in 1084. It records Chinese history from 403 BCE, in the Warring States period, to 959 CE, on the eve of the Song.
Under Shenzong the Seven Military Classics were also assembled into a single official collection. It included the Questions and Replies between Tang Taizong and Li Weigong, a text that many scholars regard as a later forgery.
Shen Kuo served the court as director of the astronomical bureau and as an envoy to the Liao. His Dream Pool Essays, written in retirement after he was disgraced over the Yongle defeat, record much of the science and technology of the age.