Liu Zi
Liu Zi, courtesy name Gongmao, was an official of the Chinese Tang dynasty, briefly serving as a chancellor during the reign of Emperor Dezong.
Background
Liu Zi was born in 729, during the reign of Emperor Xuanzong. His family traced its ancestry to the imperial house of the Han dynasty and a line of officials of the Jin dynasty, Northern Wei, Northern Qi, Sui dynasty, and Tang dynasty. Liu Zi's grandfather Liu Zixuan was a prominent official and historian during Emperor Xuanzong's reign, and his father Liu Kuang continued in the role of historian thereafter.Career prior to chancellorship
Because of his heritage, Liu Zi was made a scribe to the crown prince when he was young. He later served as the magistrate of Lianshui County. Thereafter, the deputy minister of civil service affairs, Yang Wan, recommended him as someone who can serve as an advisor to the emperor, and so he was recalled to be Zuo Bujue, a low-level official at the examination bureau of government. He later resigned in order to take care of his mother, then at the eastern capital Luoyang, and while there, Li Yi the mayor of Henan Municipality commissioned him to be a civil service officer. When his mother died, he left government service to observe a period of mourning for her. After the period of mourning was over, he was recalled to the imperial government to serve as Tuntian Yuanwailang, a low-level official at the ministry of public works. He later served as Sixun Yuanwailang, a low-level official at the ministry of civil service affairs, but took on the additional responsibility of selecting low level officials. It was said that he was diligent in his duties and followed the law. He was later promoted to be Sixun Langzhong, the supervisor of the officials who served as Sixun Yuanwailang, and yet later became an imperial attendant.In 783, Emperor Xuanzong's great-grandson Emperor Dezong was forced to flee the capital Chang'an when soldiers from Jingyuan Circuit mutinied and supported the general Zhu Ci as their leader. Emperor Dezong fled to Fengtian. Liu Zi followed him there, and served as deputy minister of worship, in charge of ceremonies. In 784, he was made the deputy minister of civil service affairs. At that time, as the persons from the southern parts of the empire, who normally would have gone to Chang'an to stand for imperial examinations, were unable to do so due to the wars and the famine in the Chang'an region at the time, Emperor Dezong sent Liu to Hong Prefecture, to examine them there. It was said that he carried out his duties well there.