In 1802, after the unification of Vietnam, he became the military commander of Nguyen's armies in northern Vietnam and later the Viceroy of Bắc Thành.
Pada 1802, setelah penyatuan Vietnam, ia menjadi komandan militer tentara Nguyen di utara Vietnam dan kemudian Viceroy Bắc Thành.