Career
Britain refused to recognize his claim to the throne, citing a treaty from 1866 which stated that a new Sultan could only accede to the throne with British permission, resulting in the Anglo-Zanzibar War in which Khalid's palace and harem were shelled by British vessels for 38 minutes, killing 500 defenders, before a surrender was received. Khalid fled his palace to take refuge in the German consulate from which he was smuggled to German East Africa where he received political asylum. He was captured by British forces at Dar es Salaam in 1916 and was exiled to the Seychelles and Saint Helena before being allowed to return to East Africa where he died in Mombasa in 1927.
1874-1896, then from 1896-1927: Sayyid Khalid bin Barghash.