By the 1840s it was obvious that Siamese independence was in danger from the colonial powers: this was shown dramatically by the British First Opium War with China in 1839–1842. In 1850 the British and Americans sent missions to Bangkok demanding the end of all restrictions on trade, the establishment of a Western-style government and immunity for their citizens from Siamese law (extraterritoriality). Rama III's government refused these demands, leaving his successor with a dangerous situation. Rama III reportedly said on his deathbed: "here will be no more wars with Burma and Vietnam. We will have them only with the West."