Viceroy of Liangjiang
In addition to his regular duties in this post, he was asked in 1880 to advise the emperor on Chinese diplomatic policy toward Russia and Japan. After the French invasion of Vietnam, he also advised the emperor on that matter. Liu spent the next several years in retirement, but was recalled to the same post as Viceroy of Liangjiang in 1890.