Treaty of Tientsin
The Chinese domination of Vietnam lasted 1050 years, and when it finally ended in 938, Vietnam became a tributary of China until 1885 when it became a protectorate of France with the Treaty of Tientsin (1885). The Lê dynasty (1428–1527) and Nguyễn Dynasty (18021945) adopted the Imperial Chinese system, with rulers declaring themselves Emperors on the Confucian model and attempting to create a Vietnamese Imperial tributary system while still remaining a tributary state of China.