On August 27, 1896, the British Empire declared war on the Sultanate of Zanzibar after a non-approved successor took the throne. The Anglo-Zanzibar War lasted a mere 38 to 45 minutes before the Sultan's forces surrendered, making it the shortest war in human history.
Imperial Treaties and the Zanzibar Protectorate
In the late nineteenth century, the East African archipelago of Zanzibar was a vital commercial hub for maritime trade across the Indian Ocean. European powers competing in the Scramble for Africa recognized its strategic value, leading to complex diplomatic agreements that gradually eroded the independence of the Sultanate of Zanzibar. The decisive framework was established by the 1890 Heligoland-Zanzibar Treaty between the United Kingdom and the German Empire. Under this pact, Germany surrendered its interests in Zanzibar in exchange for the North Sea island of Heligoland and territories in East Africa, formalizing a British protectorate over the islands.
Under the terms of this protectorate, the British government exercised significant influence over Zanzibar's foreign policy, commerce, and succession. An explicit diplomatic understanding required any prospective successor to the sultanate to obtain the formal approval of the British consul before ascending the throne. While local sultans maintained nominal domestic authority, the British administration, led locally by diplomatic representatives and naval commanders, held veto power over the leadership of the state to protect their commercial interests and strategic shipping routes.
The Succession Crisis of August 1896
The delicate balance broke down on August 25, 1896, following the sudden death of the pro-British Sultan Hamad bin Thuwaini. Within hours of Hamad's death, his 29-year-old cousin, Khalid bin Barghash, moved swiftly into the palace complex in Stone Town and proclaimed himself sultan. Khalid had previously attempted to claim the throne in 1893 and held deep grievances regarding foreign interference in Zanzibari governance. Because Khalid had seized the palace without consulting the British authorities, he directly violated the 1890 treaty.
The British consul, Basil Cave, along with General Lloyd Mathews, commander of the Sultan's army, immediately informed Khalid that he did not have British recognition and demanded that he stand down. Khalid refused, gathering roughly 2,800 to 3,000 armed defenders inside the palace compound. His forces comprised the royal palace guard, local volunteers, and armed palace servants, backed by a handful of artillery pieces, including Maxim machine guns, bronze cannons, and a Krupp field gun that had been presented to the previous sultan as a ceremonial gift.
Rather than capitulate, Khalid fortified the palace along the harbor front, placing artillery facing the water. Consul Cave requested immediate naval reinforcement from the British Cape Squadron. Over the next forty-eight hours, five Royal Navy vessels—the cruisers HMS Philomel, HMS Racoon, and HMS St George, alongside the gunboats HMS Thrush and HMS Sparrow—assembled in Zanzibar Harbour directly opposite the royal palace.
The Ultimatum and the Naval Bombardment
By the afternoon of August 26, British Rear-Admiral Harry Rawson took command of the naval flotilla. Consul Cave sent an ultimatum to Khalid stating that if the palace flag was not lowered and Khalid had not surrendered his forces by 09:00 on the morning of August 27, the British warships would open fire. Khalid sent an envoy to Cave early on August 27 declaring that he had no intention of striking his flag and that he did not believe the British would carry out their threat. Cave responded simply that while he had no desire to fire, the fleet would certainly do so unless the terms were met.
At 09:00, with no sign of surrender, the ultimatum expired. Two minutes later, at approximately 09:02, Admiral Rawson ordered the British gunboats and cruisers to begin shelling the palace compound. The high-explosive naval shells quickly devastated the palace's predominantly wooden structure, setting the buildings ablaze and collapsing roofs onto the defenders. Simultaneously, British guns engaged the shore batteries and Khalid's armed royal yacht, the HHS Glasgow, which fired a ceremonial shot at the fleet before being swiftly sunk in shallow harbor water.
A Swift Ceasefire and Massive Asymmetry
The armed engagement was brief and one-sided. By approximately 09:40, the bombardment had entirely disabled the palace's defensive artillery and the royal flagstaff was shot down, signaling an end to organized resistance. Ceasefire orders were issued between 09:40 and 09:45, officially ending hostilities roughly 38 to 45 minutes after the first shot had been fired. The disparity in military technology and tactical position made prolonged resistance impossible against the concentrated firepower of modern naval guns.
The brief engagement resulted in heavy casualties for the Zanzibari forces, with approximately 500 fighters and palace occupants killed or wounded, largely due to the explosive shells bursting inside the compact wooden buildings of the palace. By contrast, the British forces sustained minimal harm: no Royal Navy vessels suffered structural damage, and only one British petty officer aboard HMS Thrush was severely wounded, later recovering from his injuries.
Exile, Reconstruction, and Colonial Hegemony
Before the final shells fell, Khalid bin Barghash fled the burning palace and sought political asylum inside the German consulate in Stone Town. Despite British demands for his extradition, German diplomats refused to hand him over, as extradition treaties did not cover political asylum. Khalid was later evacuated aboard a German warship to Dar es Salaam on the East African mainland. He remained in German East Africa until British forces captured him during the East African Campaign of World War I in 1916, after which he was exiled to the Seychelles and Saint Helena.
Within hours of the bombardment's conclusion, the British administration installed Hamud bin Muhammed—a compliant candidate who had agreed to all British prerequisites—as the new sultan of Zanzibar. The immediate installation of a puppet ruler completed the transformation of Zanzibar from an autonomous protectorate into a fully subservient colonial administration.
The overwhelming display of naval force permanently broke local resistance to British authority. The following year, in 1897, Sultan Hamud acted on British demands and formally abolished the legal status of slavery in Zanzibar, ending an institution that had sustained the island's plantation economy for generations. The 1896 bombardment stood as the definitive assertion of British imperial dominance in East Africa until Zanzibar gained independence decades later.
Historiography and the Measurement of Time
Historical accounts of the Anglo-Zanzibar War vary slightly on the exact duration of the conflict, with recorded lengths ranging from 38 to 45 minutes. This variance stems from differences in the precise moments chroniclers chose as the start and end points: some logged the initial order to open fire at 09:00 versus the first shell impact at 09:02, while the conclusion is variously marked by the falling of the palace flagstaff at 09:40 or the final official ceasefire order at 09:45.
Regardless of the minor discrepancy in minutes, the event remains universally recognized as the shortest war in recorded history. More than a historical curiosity, the conflict represents an extreme example of nineteenth-century gunboat diplomacy—a strategy where industrial naval power was deployed directly against shore installations to enforce imperial political control in minutes rather than months.
Key takeaways
•The Anglo-Zanzibar War of August 27, 1896, lasted between 38 and 45 minutes, making it the shortest recorded war in human history.
•The conflict arose when Khalid bin Barghash seized the throne without British approval, violating the 1890 Heligoland-Zanzibar protectorate treaty.
•Royal Navy bombardment devastated the wooden palace and sank the Sultan's armed yacht, causing roughly 500 Zanzibari casualties while only one British sailor was wounded.
•The war eliminated domestic resistance to British rule in Zanzibar, leading to the appointment of a pro-British sultan and the abolition of slavery in 1897.