The Anglo-Zanzibar War, 1896

On the morning of August 27, 1896, the British Royal Navy fired on the sultan’s palace in Zanzibar. It is usually called the shortest war in recorded history.
The dispute
Sultan Hamad bin Thuwaini died suddenly on August 25, 1896. His cousin Khalid bin Barghash took the palace without British approval. Britain wanted a different candidate who was friendlier to its interests.
The ultimatum
The British gave Khalid until 9 a.m. on August 27 to leave. He did not. Warships were already in the harbor, and Khalid had gathered several thousand supporters inside the palace grounds.
The bombardment
At 9 a.m. the ships opened fire. The palace was badly damaged and the sultan’s small fleet was sunk. The shelling stopped after about 40 minutes, and Khalid fled to the German consulate.
The aftermath
Britain put Hamoud bin Mohammed in power as a sultan under British influence. Hundreds of Zanzibaris were killed or wounded, while the British side had one injured sailor.
Sources
Encyclopaedia Britannica; Royal Museums Greenwich; historical accounts of Zanzibar.