Ajuran Sultanate collapsed in the 17th century due to heavy taxing against their subjects which opened a rebellion. The ex-subjects became a new wave of Somali immigrants, the Abgaal, moved both into Shabelle basin and into Mogadishu, and the city's mudaffar dynasty collapsed. A new political elite led by Abgaal Yaquub imams, with ties to the new leaders in the interior, moved into Shingaani quarter of the city. Remnants of the Ajuran lived in the other key-quarters Xamarweyne. Ajuran merchants began to look for new linkages and regional trade opportunities since the Abgaal had commandeered the existing trading networks.