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.