Answer:
found this online : The formal protectorate over Egypt did not long outlast the war. It was brought to an end when the British government issued the Unilateral Declaration of Egyptian Independence on 28 February 1922. ... After the 1952 coup d'état, the British agreed to withdraw their troops, and by June 1956 had done so.
ALSO SOMEONE STOLE THIS ANSWER WITHOUT CREDS