Question: How were the same people who the Somali Muslim Ajuran Empire declared independence from expelled from the natural boundary between Thailand and the country where Nam Theun is found?

Knowledge 1: Nam Theun
Nam Theun, also known as Khading, is a river in Laos, in Khammouane and Bolikhamsai Provinces. Together with its tributaries Nam One, Nam Noy, and Nam Theun it has total length of and drains an area of . "Nam Theun" is also three options for large dams on the same river, called Nam Theun 1, Nam Theun 1-2 and Nam Theun 2. Nam Theun 2, which was considered the most economic of the three options, is in operation. [SEP] Knowledge 2: Pakxan
Paksane, Paksan or Muang Pakxan (Lao ປາກຊັນ) () is a town in Bolikhamsai Province, in western Laos. It is the capital of Paksan District. The Nam Xan River joins the Mekong River at Paksan on the border with Thailand, opposite Bung Kan. Paksan is well connected to the south of Laos by Route 13. [SEP] Knowledge 3: Somalis
Somali people in the Horn of Africa are divided among different countries (Somalia, Djibouti, Ethiopia, and northeastern Kenya) that were artificially and some might say arbitrarily partitioned by the former imperial powers. Pan-Somalism is an ideology that advocates the unification of all ethnic Somalis once part of Somali empires such as the Ajuran Empire, the Adal Sultanate, the Gobroon Dynasty and the Dervish State under one flag and one nation. The Siad Barre regime actively promoted Pan-Somalism, which eventually led to the Ogaden War between Somalia on one side, and Ethiopia, Cuba and the Soviet Union on the other. [SEP] Knowledge 4: Thailand
Thailand (/ ˈtaɪlænd / TY - land), officially the Kingdom of Thailand and formerly known as Siam (until 1939 and again from 1946 to 1948), is a country at the centre of the Indochinese peninsula in Southeast Asia. It is bordered to the north by Myanmar and Laos, to the east by Laos and Cambodia, to the south by the Gulf of Thailand and Malaysia, and to the west by the Andaman Sea and the southern extremity of Myanmar. Its maritime boundaries include Vietnam in the Gulf of Thailand to the southeast, and Indonesia and India on the Andaman Sea to the southwest. The capital and largest city is Bangkok. With around 69 million people, Thailand is the 20th-most - populous country in the world.
Knowledge 1: Nam Theun
Nam Theun, also known as Khading, is a river in Laos, in Khammouane and Bolikhamsai Provinces. Together with its tributaries Nam One, Nam Noy, and Nam Theun it has total length of and drains an area of . "Nam Theun" is also three options for large dams on the same river, called Nam Theun 1, Nam Theun 1-2 and Nam Theun 2. Nam Theun 2, which was considered the most economic of the three options, is in operation. [SEP] Knowledge 2: Pakxan
Paksane, Paksan or Muang Pakxan (Lao ປາກຊັນ) () is a town in Bolikhamsai Province, in western Laos. It is the capital of Paksan District. The Nam Xan River joins the Mekong River at Paksan on the border with Thailand, opposite Bung Kan. Paksan is well connected to the south of Laos by Route 13. [SEP] Knowledge 3: Somalis
Somali people in the Horn of Africa are divided among different countries (Somalia, Djibouti, Ethiopia, and northeastern Kenya) that were artificially and some might say arbitrarily partitioned by the former imperial powers. Pan-Somalism is an ideology that advocates the unification of all ethnic Somalis once part of Somali empires such as the Ajuran Empire, the Adal Sultanate, the Gobroon Dynasty and the Dervish State under one flag and one nation. The Siad Barre regime actively promoted Pan-Somalism, which eventually led to the Ogaden War between Somalia on one side, and Ethiopia, Cuba and the Soviet Union on the other. [SEP] Knowledge 4: Thailand
Thailand (/ ˈtaɪlænd / TY - land), officially the Kingdom of Thailand and formerly known as Siam, is a country at the center of the Southeast Asian Indochinese peninsula composed of 76 provinces. At 513,120 km (198,120 sq mi) and over 68 million people, Thailand is the world's 50th largest country by total area and the 21st-most - populous country. The capital and largest city is Bangkok, a special administrative area. Thailand is bordered to the north by Myanmar and Laos, to the east by Laos and Cambodia, to the south by the Gulf of Thailand and Malaysia, and to the west by the Andaman Sea and the southern extremity of Myanmar. Its maritime boundaries include Vietnam in the Gulf of Thailand to the southeast, and Indonesia and India on the Andaman Sea to the southwest. Although nominally a constitutional monarchy and parliamentary democracy, the most recent coup in 2014 established a de facto military dictatorship.
Knowledge 1: Nam Theun
Nam Theun, also known as Khading, is a river in Laos, in Khammouane and Bolikhamsai Provinces. Together with its tributaries Nam One, Nam Noy, and Nam Theun it has total length of and drains an area of . "Nam Theun" is also three options for large dams on the same river, called Nam Theun 1, Nam Theun 1-2 and Nam Theun 2. Nam Theun 2, which was considered the most economic of the three options, is in operation. [SEP] Knowledge 2: Pakxan
Paksane, Paksan or Muang Pakxan (Lao ປາກຊັນ) () is a town in Bolikhamsai Province, in western Laos. It is the capital of Paksan District. The Nam Xan River joins the Mekong River at Paksan on the border with Thailand, opposite Bung Kan. Paksan is well connected to the south of Laos by Route 13. [SEP] Knowledge 3: Somalis
Somali people in the Horn of Africa are divided among different countries (Somalia, Djibouti, Ethiopia, and northeastern Kenya) that were artificially and some might say arbitrarily partitioned by the former imperial powers. Pan-Somalism is an ideology that advocates the unification of all ethnic Somalis once part of Somali empires such as the Ajuran Empire, the Adal Sultanate, the Gobroon Dynasty and the Dervish State under one flag and one nation. The Siad Barre regime actively promoted Pan-Somalism, which eventually led to the Ogaden War between Somalia on one side, and Ethiopia, Cuba and the Soviet Union on the other. [SEP] Knowledge 4: Geography of Myanmar
Myanmar (also known as Burma) is the northwestern-most country of mainland Southeast Asia, bordering China, India, Bangladesh, Thailand and Laos. It lies along the Indian and Eurasian Plates, to the southeast of the Himalayas. To its west is the Bay of Bengal and to its south is the Andaman Sea. It is strategically located near major Indian Ocean shipping lanes.

Answer: The dynasty regrouped and defeated the Portuguese