It was formed during World War II and became a socialist republic after the war. It had four full official names during its 48-year existence. By territory and population, it was the second largest republic in Yugoslavia, after the Socialist Republic of Serbia.