The shortest war in history occurred between the countries of Britain and Zanzibar in 1896. The war lasted only 38 minutes, ending with Zanzibar's surrender.
After the death of Sultan Khalid, the British supported the appointment of Sultan Hamad bin Thuwaini as his successor. However, Khalid's cousin, Sultan Khalid bin Barghash, declared himself the new sultan and refused to step down. The British, having significant military presence in the region, issued an ultimatum demanding Khalid's surrender by 9:00 a.m. on August 27, 1896.
When the deadline passed, the British launched a bombardment on the Sultan's palace and other strategic targets using warships anchored in the harbor. Zanzibar's defenses, consisting mainly of outdated wooden warships and a few shore batteries, were no match for the superior firepower of the British.