After World War II, the regions of Libya were ruled by military governors from both Britain and France. The United Nations made Libya an independent country, the United Kingdom of Libya, in 1951. This was to be a constitutional monarchy, ruled by King Idris I and his successors. Idris (Muhammad Idris bin Muhammad al-Mahdi as-Senussi) (13 March 1890—25 May 1983) had been the Emir of Cyrenaica, but went into exile in Egypt in 1922. At the end of the war, he returned as emir, with support of Britain. He was also asked to be Emir of Tripolitania. He was able to unite the three regions and became the king of the United Kingdom of Libya on 24 December 1951.