From 1943 to 1951, Libya was under Allied occupation. The British military administered the two former Italian Libyan provinces of Tripolitana and Cyrenaïca, while the French administered the province of Fezzan. In 1944, Idris returned from exile in Cairo but declined to resume permanent residence in Cyrenaica until the removal of some aspects of foreign control in 1947. Under the terms of the 1947 peace treaty with the Allies, Italy relinquished all claims to Libya.