The state was formed to unite the Yugoslav resistance movement to the occupation of Yugoslavia by the Axis powers. The agreement left the issue of whether the state would be a monarchy or a republic intentionally undecided until after the war had ended so the position of head of state was vacant. After the merger of the governments, Josip Broz Tito became Prime Minister and Ivan Šubašić became foreign minister.