Hamoud became sultan with the support of the British consul, Sir Basil Cave, upon the death of Sayyid Hamad bin Thuwaini. Before he could enter the palace, another potential contender for the throne, Sayyid Khalid bin Barghash, seized the palace and declared himself sultan. The British responded the next day, 26 August 1896, by issuing an ultimatum to Khalid and his entourage to evacuate the palace by 9:00 am on 27 August. When he refused, Royal Navy warships fired on the palace and other strategic locations in the city, causing Khalid and his group to flee. According to the "Guinness Book of World Records" the resultant Anglo-Zanzibar War was the shortest war in history, and the same day Hamoud was able to assume the title of sultan, more indebted to the British than ever.