During the Crusades, a second wave of immigration from Arabia caused major upheaval in Ajuran. Arab Muslims displaced by the Christian invasion came to Ajuran not as refugees but as conquerors in their own right. The privileged position of earlier Arab merchants was co-opted by the late arrivals as a new dynasty established itself in the Horn of Africa, ruling for some years and successfully resisting Byzantine hegemony in the wider region.
Respecting the Sultanate's resistance to Constantinople and other local forces, the English treated Ajuran as a legitimate political entity even as they colonised large tracts of Africa and declared whole -inhabited- regions terra nullius. Thus Ajurani independence was maintained during the height of the Euro-American colonial age.
However, despite its strong legal code, efficient tax system, well-organised and battle-hardened army, and large fleet of cannon-armed dhows, Ajuran was left behind by the industrial revolution, and its agricultural base remained unable to support rapid population growth. When, in the late nineteenth century, Gandvik came late to the colonial game and launched an expedition against the Sultanate, the European nation counted several tens of millions of subjects, and Ajuran not many more than one million.
Despite this disparity, Gandvik's remoteness from the Horn of Africa and its greater interest in European struggles meant that only three battalions came ashore to capitalise on the Gandvian fleet's decisive defeat of the Sultanate's obsolete navy. Supported by naval gunnery, their capture of key ports was rapid and in stark contrast with earlier Byzantine failures. The speed and scale of these achievements convinced many of Ajuran's 'first wave' of Arab clans to side with the invaders in hopes of securing a privileged position in any future administration.
Recruiting a number of locals, the Europeans hoped to be guided through the interior and to march quickly through the Sultanate in triumph. However, the Arabs who had flocked to the Gandvians were predominantly residents of the coastal region, and were not so familiar with the hinterland as the Europeans' wishful thinking allowed them to believe. Whether through ignorance or deceit, their Arab guides lead the Gandvians into a highly disadvantageous position under the Sultan's guns, where they were flanked by mounted troops, using both horses and camels, of an army several times the size of their own force.
Estimates for the size of the European contingent range from 2,250 to 2,700, along with 750-900 Arab levies for a total strength between 3,000 and 3,600, with 10 to 12 guns, mostly small pack artillery pieces. The Sultan's army, meanwhile, numbered anywhere from 14,000 to 24,000, of whom three quarters were armed either with muskets or recently imported rifles possibly obtained from Gandvik's European rivals, and the remainder with spears, lances, bows, and sabres. The Ajuranis are believed to have had 6 to 10 artillery pieces of various sizes, some being archaic cannon and others slightly more modern, but they had the advantage of having deployed their guns ahead of the engagement and on the high ground.
Some 1,400 Gandvians died on the field and 600 were captured (including several dozen who would later die of their wounds), while as many as 300 who escaped would be listed as wounded, meaning that virtually no European was left unscathed. Of the Gandvian's Arab allies accounts vary, some suggesting that they quit the field early and left the Christians to the slaughter, while others, today in academic favour, report that many Arabs were amongst the last resisting in scattered parts of the chaotic battlefield, no doubt rightly fearing the grim traitor's fate that awaited those who were captured.
In one of the worst defeats for a European army fighting non-white opposition, the Gandvians lost to the Sultanate several thousand modern rifles, a number of light artillery pieces, countless rounds of ammunition, and hundreds of pack animals. Making the most of their triumph, the Ajuranis demanded a steep ransom for their European captives, perhaps too steep, for in addition to the injury dealt to national pride, Riga would there after be in pursuit of lost treasure, and determined to exact a stuff penalty from the Sultanate.
When the Gandvians returned near the turn of the century, they brought fewer but more professional troops, this time all armed with repeating rifles and machine-guns. The force of 1,500 was able to capitalise on the Sultanate's harsh treatment of the supposedly 'rebellious' Arab communities to raise an even larger local force, and brought on board a number of black African fighters arrived in Ajuran as refugees from Byzantine rule and inter-communal strife in Nilosahara. In all, some 5,000 men marched against the weakened Sultanate, which had itself lost some 2,500 men in the prior engagement and could no longer count on its minority populations to support it. With around 10,000-11,000 men on the field, the Sultan, outnumbering his opponent 2-1 and remembering their previous encounter, chose not to wait for further reinforcements when his main army encountered the enemy on open ground. He engaged, but with the Europeans bolstered by several machine-guns and hundreds of five-round magazine rifles, and this time able to bring their modern artillery to bear, almost half the Ajurani force was destroyed for only a few dozen Gandvian casualties.
The Sultan retreated to one of his fortified palaces, hoping to regroup for a guerrilla resistance campaign in the northern highlands, but deserted by ever more of his subjects and hotly pursued by the Gandvians, he was soon besieged and eventually forced to surrender his sovereignty and retire into exile.