First, Ang Chan had to convince his loyalty to Gia Long by arriving in a Vietnamese temple in the capital Phnom Penh every two months, had to wear Vietnamese attire and bow before a tablet bearing the Vietnamese emperor's name. Meanwhile, in the Siamese occupying-western Cambodia included
Battambang, Ang Snguon and Ang Em declared as co-regents of Cambodia until 1813, then went to exile in Bangkok. Ang Snguon died in 1822. Encouraged by Gia Long, many
ethnic Chams from
central Vietnam migrated to Cambodia, whom most were
Muslims. They erected
Noor Al-Ihsan Mosque in Phnom Penh in 1813 to show their loyalty to the Cambodian Crown. In 1817, tens of thousand Cambodian and Vietnamese workers were employed by Vietnamese officials to repair and extend the 40-miles
Vĩnh Tế Canal that connects the
Gulf of Thailand with the
Mekong. In 1820–21 many Cambodian workers and
ethnic Cambodian in southeast Cambodia, along with the
Khmer Kroms joined the
Ba Khnom rebellion led by a Khmer Buddhist monk against the Vietnamese rule. Ang Chan tried to suppress the rebellion with his Khmer–Vietnamese military but failed because its Khmer officials (okya) had deserted to the rebellion. The Vietnamese emperor Gia Long died in the same year. His successor, emperor
Minh Mạng then sent a fresh army to Cambodia. His force defeated the rebellion at
Kampong Cham and had the monk leader tried and executed in Saigon, including many other rebels. The new ruler of Vietnam, Minh Mạng, was a conservative Confucian ruler. He shut down relations with France in 1824, contesting with Siamese ruler
Rama III over Laos in 1828–31, and annexed many parts of the country in 1832. He took a different approach toward Cambodia, and also toward ethnic minorities in Southern Vietnam and the
Central Highlands. That time Minh Mạng wanted to replace the Viceroy of Cambodia and Saigon,
Lê Văn Duyệt, with officials loyal to him in order to consolidate his centralization efforts. In 1832, Duyệt died, the Vietnamese emperor removed the Viceroyalty of Saigon. Lê Văn Duyệt's adopted son
Lê Văn Khôi revolted against Minh Mạng and the royal court. Hearing the news, Rama III of Siam, believed that he could scold Minh Mạng with assistance from pro-Siamese Chinese mercantile class in Saigon, sending a large army led by
Bodin to attack the Vietnamese positions in Cambodia in early 1833 at the outbreak of the
First Siamese–Vietnamese War. The Vietnamese quickly abandoned Phnom Penh and evacuated to Saigon along with king Ang Chan and the Cambodian court. The Siamese entered Phnom Penh with ease, installing Chan's brothers Ang Im and Ang Duang to the new Cambodian government but failed to gain popular support. Rama III promised to restore the Kingdom of Cambodia and punish the insolence of the Kingdom of Vietnam. However, poor communications between Siamese forces and navy caused the Siamese army to withdraw in early 1834 when Vietnamese navy broke the Siamese sea blockade and counterattacked. ==Vietnamese annexation of Cambodia (1834-1841)==