Siam's independence, during the past two hundred years, came under serious threat from foreign powers, and only the astute rule of King Chulalongkorn in the late 19th century saved the country from being swallowed by Britain and France, like much of the rest of Southeast Asia. Siam did, however, suffer some fourteen boundary losses; eight of them to Britain and France, and the rest to neighboring countries