 Because his branch of the Liu family was powerful, and because he proved himself to be an able statesman, he quickly rose through the ranks of the court.The highest post he reached was that of Minister of Ceremonies (), or person responsible for ceremonies related to the emperor.During the reign of Emperor Ling, the central court became a politically dangerous place, which Liu Yan wanted to distance himself from.