Raikes moved to Zanzibar to take up an appointment as Brigadier-General in the Sultan's army. In 1896 he was involved in the Anglo-Zanzibar War, caused by the succession of a sultan unfavourable to the British, and led 900 pro-British Askaris during the bombardment of the Sultan's palace. In return for his service he was appointed a First Class (Second Grade) member of the Order of the Brilliant Star of Zanzibar on 24 September 1896, a First Class member of the Zanzibari Order of Hamondieh on 25 August 1897 and later promoted to Commander of the Zanzibar armies.