Meanwhile, Pavelić had detached from the group and fled to Austria, Italy, Argentina and finally Spain, where he would die in 1959. Several other members of the NDH government were captured in May and June 1945, and sentenced to death or long-term imprisonment in the trial of Mile Budak. The end of the war resulted in the establishment of the Democratic Republic of Yugoslavia, which later became the Socialist Federal Republic of Yugoslavia, with the Constitution of 1946 officially making the People's Republic of Croatia and the People's Republic of Bosnia and Herzegovina two of the six constituent republics of the new state.