 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).