A rump state is the remnant of a once much larger state, left with a reduced territory in the wake of secession, annexation, occupation, decolonization, or a successful coup d'état or revolution on part of its former territory. In the last case, a government stops short of going into exile because it controls part of its former territory. During the Second Intermediate Period, following the conquest of Lower Egypt by the Hyksos, there was a rump Egyptian kingdom in Upper Egypt centered on Thebes, which eventually reunified the country at the start of the New Kingdom. Seleucid Empire after losing most of its territory to the Parthian Empire. The State of Shu Han during the Chinese Three Kingdoms Period, claimed to be a continuation of the original Han Dynasty. The Eastern Jin was a rump state of the Western Jin after the Upheaval of the Five Barbarians. After the collapse of the Western Roman Empire in Gaul, the Kingdom of Soissons survived as a rump state under Aegidius and Syagrius until conquered by the Franks under Clovis I in 486. Sultanate of Rum, a rump state of the Seljuk Empire. Later Tang, a self-proclaimed rump state of the Tang dynasty. Qara Khitai, a rump state of the Liao dynasty. Guge, a rump state of Tibetan Empire After the Almoravid conquest of the Taifa of Zaragoza in 1110, the taifa's last ruler, Abd-al-Malik, maintained a tiny rump emirate at Rueda de Jalón until his death in 1130. After the Jin dynasty assumed control over northern China in 1127, the Southern Song existed as a rump state of the Northern Song dynasty, although it still retained over half of Northern Song's territory and more than half of its population. After the Ming dynasty established control over China proper in 1368, the Yuan dynasty retreated to the Mongolian Plateau and survived as a rump state called the Northern Yuan. By summer 1503, the Aq Qoyunlu rule collapsed in Iran. Some Aq Qoyunlu rump states continued to rule until 1508, before they were absorbed into the Safavid Empire by Ismail I.