Liu Yuxi (Wade-Giles: Liu Yü-hsi; simplified Chinese: 刘禹锡; traditional Chinese: 劉禹錫; pinyin: Liú Yǔxī) (772–842) was a Chinese poet, philosopher, and essayist, active during the Tang Dynasty.
His ancestors were Xiongnu nomadic people. The putative ‘seventh generation’ family head, Liu Liang, was an official of the Northern Wei (386-534), who followed the Emperor Xiaowen (471-499) when he established the capital at Luoyang in 494. Following the government sinification policy, he became Han and register his surname as Liu. From then on the family was based in Luoyang.
Liu Yuxi’s father, Li Xu, was forced to leave Luoyang to avoid the An Lushan rebellion (755-763) and went to Jiaxing (in the north of present-day Zhejiang Province). Liu Yuxi was born and grew up in the south. In his youth he studied with two renowned poets in Kuaiji (now Shaoxing), the Chan (Zen) monks Lingche (靈澈, 746-816) and Jiaoran (皎然, 730-799), and his later works often reflected this Buddhist sensibility.
In 793, Liu passed the jinshi imperial examination. One of the other successful candidates that year was another great poet, Liu Zongyuan, whose career was to be closely connected to that of Liu Yuxi. That same year, Liu Yuxi went on to pass the higher examination (boxue hongceke). In 795, the Ministry of Appointments sent him to be a tutor to the Heir Apparent, a sign that he was destined from a prominent career. However, in 796, his father suddenly died and he had to return to Yangzhou.