The shortest war on record took place in 1896 when Zanzibar surrendered to Britain after 38 minutes.