The World Wars and Yugoslavia
On 29 October 1918, the Croatian Parliament (Sabor) declared independence and decided to join the newly formed State of Slovenes, Croats, and Serbs, which in turn entered into union with the Kingdom of Serbia on 4 December 1918 to form the Kingdom of Serbs, Croats, and Slovenes. The Croatian Parliament never ratified the union with Serbia and Montenegro. The 1921 constitution defining the country as a unitary state and abolition of Croatian Parliament and historical administrative divisions effectively ended Croatian autonomy.
The new constitution was opposed by the most widely supported national political party—the Croatian Peasant Party (HSS) led by Stjepan Radić. The political situation deteriorated further as Radić was assassinated in the National Assembly by NRS member, Serbian nationalist politician Puniša Račić in 1928, culminating in King Alexander I's establishment of the 6 January Dictatorship in 1929. The dictatorship formally ended in 1931 when the king imposed a more unitary constitution. The HSS, now led by Vladko Maček, continued to advocate federalisation, resulting in the Cvetković–Maček Agreement of August 1939 and the autonomous Banovina of Croatia. The Yugoslav government retained control of defence, internal security, foreign affairs, trade, and transport while other matters were left to the Croatian Sabor and a crown-appointed Ban.
In April 1941, Yugoslavia was invaded by Nazi Germany and Fascist Italy. Following the invasion, a German-Italian installed puppet state named the Independent State of Croatia (NDH) was established. Most of Croatia, Bosnia and Herzegovina, and the region of Syrmia were incorporated into this state. Parts of Dalmatia were annexed by Italy, Hungary annexed the northern Croatian regions of Baranja and Međimurje. The NDH regime was led by Ante Pavelić and the ultranationalist Ustaše, a fringe movement in pre-war Croatia. With German and Italian military and political support, the regime introduced racial laws and launched a genocide campaign against Serbs, Jews, and Roma. Many were imprisoned in concentration camps; the largest was the Jasenovac complex. Anti-fascist Croats were targeted by the regime as well. Several concentration camps (most notably the Rab, Gonars and Molat camps) were established in Italian-occupied territories, mostly for Slovenes and Croats. At the same time, the Yugoslav Royalist and Serbian nationalist Chetniks pursued a genocidal campaign against Croats and Muslims, aided by Italy. Nazi German forces committed crimes and reprisals against civilians in retaliation for Partisan actions, such as in the villages of Kamešnica and Lipa in 1944.
A resistance movement emerged. On 22 June 1941, the 1st Sisak Partisan Detachment was formed near Sisak, the first military unit formed by a resistance movement in occupied Europe. That sparked the beginning of the Yugoslav Partisan movement, a communist, multi-ethnic anti-fascist resistance group led by Josip Broz Tito. In ethnic terms, Croats were the second-largest contributors to the Partisan movement after Serbs. In per capita terms, Croats contributed proportionately to their population within Yugoslavia. By May 1944 (according to Tito), Croats made up 30% of the Partisan's ethnic composition, despite making up 22% of the population. The movement grew fast, and at the Tehran Conference in December 1943, the Partisans gained recognition from the Allies.
With Allied support in logistics, equipment, training and airpower, and with the assistance of Soviet troops taking part in the 1944 Belgrade Offensive, the Partisans gained control of Yugoslavia and the border regions of Italy and Austria by May 1945. Members of the NDH armed forces and other Axis troops, as well as civilians, were in retreat towards Austria. Following their surrender, many were killed in the Yugoslav death march of Nazi collaborators. In the following years, ethnic Germans faced persecution in Yugoslavia, and many were interned. The political aspirations of the Partisan movement were reflected in the State Anti-fascist Council for the National Liberation of Croatia, which developed in 1943 as the bearer of Croatian statehood and later transformed into the Parliament in 1945, and AVNOJ—its counterpart at the Yugoslav level.
Based on the studies on wartime and post-war casualties by demographer Vladimir Žerjavić and statistician Bogoljub Kočović, a total of 295,000 people from the territory (not including territories ceded from Italy after the war) died, which amounted to 7.3% of the population, among whom were 125–137,000 Serbs, 118–124,000 Croats, 16–17,000 Jews, and 15,000 Roma. In addition, from areas joined to Croatia after the war, a total of 32,000 people died, among whom 16,000 were Italians and 15,000 were Croats. Approximately 200,000 Croats from the entirety of Yugoslavia (including Croatia) and abroad were killed in total throughout the war and its immediate aftermath, approximately 5.4% of the population.
After World War II, Croatia became a single-party socialist federal unit of the SFR Yugoslavia, ruled by the Communists, but having a degree of autonomy within the federation. In 1967, Croatian authors and linguists published a Declaration on the Status and Name of the Croatian Standard Language demanding equal treatment for their language. The declaration contributed to a national movement seeking greater civil rights and redistribution of the Yugoslav economy, culminating in the Croatian Spring of 1971, which was suppressed by Yugoslav leadership. Still, the 1974 Yugoslav Constitution gave increased autonomy to federal units, basically fulfilling a goal of the Croatian Spring and providing a legal basis for independence of the federative constituents. At the same time, there was a substantial Croatian diaspora during the Cold War, which included efforts aimed at forming a government in exile.
Following Tito's death in 1980, the political situation in Yugoslavia deteriorated. National tension was fanned by the 1986 SANU Memorandum and the 1989 coups in Vojvodina, Kosovo, and Montenegro. In January 1990, the Communist Party fragmented along national lines, with the Croatian faction demanding a looser federation. In the same year, the first multi-party elections were held in Croatia, while Franjo Tuđman's win exacerbated nationalist tensions. Some of the Serbs in Croatia left Sabor and declared autonomy of the unrecognised Republic of Serbian Krajina, intent on achieving independence from Croatia.