Phạm Văn Trị (范文治, ? - ?) or Phạm Công Trị (范公治), later Nguyễn Văn Trị (阮文治), was a general of Tây Sơn dynasty, Vietnam. He was the second son of Phạm Công Hưng.
Nguyễn Huệ defeated Chinese army in Ngọc Hồi and Đống Đa in 1789. But Huệ decided to submit himself as vassal of Qing China and agreed to pay tribute annually. If not, Tây Sơn dynasty would fall in a two-front war with both Qing China and Siam.[1]
In order to gain support from Qing China, Nguyễn Huệ promised that he would go himself to have an audience with Qianlong Emperor. But actually Huệ did not want to go at all. Finally, Phạm Văn Trị was chosen as the political decoy and went to China.[1] He reached Beijing, then to Chengde Mountain Resort, to celebrate eightieth birthday of Qianlong. Qianlong was very happy, and recognized Nguyễn Huệ as the ruler of Vietnam. Qianlong granted a lot of gifts to him. Before he returned to Vietnam, Qianlong ordered an imperial artist to draw a portrait of him as a gift.[2] [3]
Soon after he returned, he was granted the rank of Quận công ("provincial duke") and the royal family name "Nguyễn", and married a daughter of Nguyễn Huệ.
In 1801, Nguyễn Ánh attacked the capital Phú Xuân (mordern Huế). Nguyễn Văn Trị led a troop in Qui Sơn Hill, and built a fence to defend Nguyễn army. Lê Văn Duyệt and Lê Chất launched a night raid and finally defeated him.[4] He fled to Trường Hà, there, he was captured by Nguyễn army.