Li Anqi (李安期) was an official of the Chinese Tang Dynasty who briefly served as chancellor during the reign of Emperor Gaozong. Background It is not known when Li Anqi was born. He came from a line of famed officials, as his grandfather Li Delin served as a high-level official under Emperor Wen of Sui, and his father Li Baiyao served as an official of both the Sui Dynasty and the Tang Dynasty. Li Baiyao also completed the Book of Northern Qi, the official history of Northern Qi, the dynasty under which Li Delin started his career, which Li Delin started. Li Anqi himself was said to be intelligent and articulate in his youth, and he was able to begin interpreting texts when he was six years old. Late in the reign of Emperor Yang of Sui (r. 604–618), Li Baiyao had been demoted to be the military advisor to the governor of Shi'an Prefecture (始安, roughly modern Guilin, Guangxi), when he was intercepted by agrarian rebels near Lake Tai, and the rebels were about to put him to death, when Li Anqi wept and kneeled, asking the rebels to spare his father and to kill him instead. The rebels took pity on Li Anqi and spared them both. Early in the reign of Emperor Taizong of Tang, Li Anqi, who had become a low level governmental official, served as the official in charge of the imperial seals and staffs. He participated in the editing of the official history of the Jin Dynasty (266–420), the Book of Jin, a project headed by the chancellor Fang Xuanling, and after the book was completed, he became an official at the ministry of ceremonies, serving as the deputy head of the department in charge of supplying the descendants of the imperial houses of Tang's predecessors Sui and Northern Zhou. During Emperor Gaozong's reign During the Yonghui era of Emperor Taizong's son and successor Emperor Gaozong, Li Anqi served as a mid-level official at the legislative bureau of government (中書省, Zhongshu Sheng), and later served as Huangmen Shilang (黃門侍郎), the deputy head of the examination bureau (門下省, Menxia Sheng). As of 666, when Emperor Gaozong was offering sacrifices to heaven and earth at Mount Tai, Li Anqi was serving as the deputy minister of civil service, and Emperor Gaozong had him author the text for the monument at the altar. It was said that