Military competition for regional hegemony continued, with continued Siamese military operations to maintain their control over the kingdom of Cambodia, and Siamese support for the removal of the hostile Tây Sơn dynasty in Vietnam with the initially compliant ruler of Nguyễn Ánh. In later years, the Vietnamese emperor was less cooperative, supporting a Cambodian rebellion against Siamese authority and placing a Vietnamese garrison in Phnom Penh, the Cambodian capital, for several years. Conflict with Burma was renewed in the two campaigns of the Burmo-Siamese war (1785–86), seeing initial Burmese successes in both years turned around by decisive Siamese victories. The accession of Rama II in 1809 saw a final Burmese invasion, the Thalang campaign, attempting to take advantage of the succession of power. Despite the destruction of Thalang, Rama's ultimate victory affirmed Siamese relative military superiority against Burma, and this conflict was to represent the final invasion of Siamese territory by Burma.