The Kingdom of Luang Phrabang, also called Kingdom of Luang Prabang was formed in 1707 as a result of the split of the Kingdom of Lan Xang. When the kingdom split, Muang Phuan became a tributary state of Luang Prabang. Over the years the monarchy weakened even more, and was forced to become a vassal various times to the Burmese and the Siamese monarchies.
A French consulate was established in the capital of Luang Prabang in 1885. The kingdom was at this time a Siamese vassal, who feared French plans of annexing of Luang Prabang. A treaty was signed on 7 May 1886 between Siam and France recognizing Siamese suzerainty over Luang Prabang and neighboring Lao kingdoms. France conducted expeditions in the region, searching for the possibility of establishing French territory there. A particularly destructive attack during the Haw wars by the Chinese Black Flag Army in 1887 saw King Oun Kham request French protection. This was accepted and signed on 27 March 1889, against Siamese protest.
