For most of Vietnamese history, the Vietnamese rulers recognised the Chinese emperor as their feudal lord while ruling independently in their own land.
Lê Chiêu Thống fled to the Qing Empire and appealed to the Qianlong Emperor for help.