Sima Guang, courtesy name Junshi, a native of the Sushui village in Xia county, Shanzhou, was a Northern Song statesman and historian. A jinshi in his youth, he served through the reigns of Renzong, Yingzong and Shenzong, opposing Wang Anshi's New Policies and holding that government should keep to established ways; during the Xining years he withdrew to Luoyang for fifteen years and devoted himself to compiling history. The Comprehensive Mirror in Aid of Governance that he directed runs to 294 fascicles, covering more than 1,300 years from the start of the Warring States period to the end of the Five Dynasties and Ten Kingdoms; nineteen years in the making, it is China's first great universal chronicle (annals-style history), conceived under the motto 'mirror the past so as to aid the way of governance', written in a stern, economical style that made it the model for all later chronological histories. After Shenzong died, Sima Guang in 1086 took office as director of the Grand Secretariat and led the wholesale repeal of the new laws — the 'Yuanyou rectification' — dying the same year. He was posthumously enfeoffed Duke of Wen and is remembered as Sima Wengong; his other writings include the Qianxu and the Family Precepts.