Viceroy of Liangjiang
In 1810, Sun Yuting was appointed as the Provincial Governor of Yunnan Province before he was later promoted to Viceroy of Huguang and then Viceroy of Liangjiang. In March 1821, while serving as Viceroy of Liangjiang, he was also given the honorary title of Assisting Grand Secretary (). In August 1824, he was promoted to Grand Secretary of Tiren Cabinet (). However, he was subsequently dismissed from office in 1824 due to a breach in the Yellow River embankment, which was under his supervision.