King Peter was forced to leave the country with the Yugoslav government following the Axis invasion; initially the King went with his government to Greece, and Jerusalem, then to the British Mandate of Palestine and Cairo, Egypt. He went to England in June 1941, where he joined numerous other governments in exile from Nazi-occupied Europe. Local Yugoslav forces continued to resist the occupying Axis powers. Initially the monarchy preferred Draža Mihailović and his Serb-dominated Četnik resistance. However, in 1944, the Tito–Šubašić agreement recognised the Democratic Federal Yugoslavia as a provisional government, with the status of the monarchy to be decided at a later date. Three regents, Srđan Budisavljević, a Serb, Ante Mandić, a Croat, and Dušan Sernec, a Slovene, were sworn in at Belgrade on 3 March 1945. They appointed the new government, to be headed by Tito as prime minister and minister of war, with Šubašić as foreign minister, on 7 March.