The kingdom was created after the Unilateral Declaration of Egyptian Independence by the United Kingdom. Until the Anglo-Egyptian treaty of 1936, the Kingdom was only somewhat independent, since the British had control of foreign relations, communications, the military and the Anglo-Egyptian Sudan. 