While the British intervention was meant to be a temporary state of affairs, British forces continued to occupy Egypt for decades afterwards. In 1914, fearing that he would establish an alliance with the Ottoman Empire during the First World War, the British administration in Egypt ousted Khedive Abbas II, after which Egypt became a sultanate and was transformed into a British protectorate. Great Britain recognised Egyptian independence in 1922, following a revolution in 1919.