During Po Saong Nying Ceng's tenure, in 1802, lord Nguyễn Ánh finally managed to defeat the Tây Sơn and unite Vietnam under a single rule, as Emperor
Gia Long. Peace was therefore restored, and the ruler was able to reorganize the Cham lands and address the consequences of the long Vietnamese civil war. He was granted full powers over the non-Vietnamese inhabitants of Thuận Thành. He was also entitled to raise a small army under his sole command, and to levy taxes from the population. The arrangement might be seen more as a fief to reward faithful services than as the reconstruction of a Cham vassal polity. Nevertheless, the tribulations of the Cham people persisted. As a manuscript has it, "in this era, the people suffered a lot due to the corvée services, and did not know from whom they could hope for assistance". The population was ordered to construct military posts and magazines to which they had to transport rice. After receiving report about the forest resources of Champa, the Emperor ordered the Chams to gather wood for the construction of ships. To make matters worse, a
crauh (stomach disease) epidemic ravaged the land in 1820. In spite of the heavy corvée services, "the kingdom was not threatened by disparition, for Po Cang maintained the traditional Cham customs with perseverance." ==Death and succession==