linguistic:voice_change, linguistic:translation, linguistic:paraphrasing, quality:correction, stylistic:style_transfer
The Spanish Civil War (Spanish: Guerra Civil Española) was a military conflict fought from 1936 to 1939 between the Republicans and the Nationalists. Republicans were loyal to the left -leaning Popular Front government of the Second Spanish Republic, and consisted of various socialist, communist, separatist, anarchist, and republican parties, some of which had opposed the government in the pre-war period. The opposing Nationalists were an alliance of Falangists, monarchists, conservatives, and traditionalists led by a military junta among whom General Francisco Franco quickly achieved a preponderant role. Due to the international political climate at the time, the war had many facets and was variously viewed as class struggle, a religious struggle, a struggle between dictatorship and republican democracy, between revolution and counterrevolution, and between fascism and communism. According to Claude Bowers, U.S. ambassador to Spain during the war, it was the " dress rehearsal " for World War II. The Nationalists won the war, which ended in early 1939, and ruled Spain until Franco's death in November 1975.

The war began after the partial failure of the coup d'état of July 1936 against the Republican government by a group of generals of the Spanish Republican Armed Forces, with General Emilio Mola as the primary planner and leader and General José Sanjurjo as a figurehead. The government at the time was a coalition of Republicans, supported in the Cortes by communist and socialist parties, under the leadership of centre-left president Manuel Azaña. The Nationalist faction was supported by several conservative groups, including CEDA, monarchists, including both the opposing Alfonsists and the religious conservative Carlists, and the Falange Española de las JONS, a fascist political party.

The coup was supported by military units in Morocco, Pamplona, Burgos, Zaragoza, Valladolid, Cádiz, Córdoba, Málaga, and Seville. However, rebelling units in almost all important cities—such as Madrid, Barcelona, Valencia, Bilbao, Murcia, and Almería —did not gain control. Those cities remained in the hands of the government, leaving Spain militarily and politically divided. The Nationalists and the Republican government fought for control of the country. The Nationalist forces received munitions, soldiers, and air support from Fascist Italy and Nazi Germany while the Republican side received support from the Soviet Union and Mexico. Other countries, such as the United Kingdom, France, and the United States, continued to recognise the Republican government but followed an official policy of non-intervention. Despite this policy, tens of thousands of citizens from non-interventionist countries directly participated in the conflict. They fought mostly in the pro-Republican International Brigades, which also included several thousand exiles from pro-Nationalist regimes. Smaller numbers of pro-Republican international volunteer fighters fought in the POUM, the CNT and the UGT.

After the deaths of José Sanjurjo on July 20, 1936, Manuel Goded Llopis on August 12, 1936, and Emilio Mola on June 3, 1937, Franco gradually emerged as the primary leader of the Nationalist side.

The Nationalists advanced from their strongholds in the south and west, capturing most of Spain's northern coastline in 1937. They also besieged Madrid and the area to its south and west for much of the war. After much of Catalonia was captured in 1938 and 1939, and Madrid cut off from Barcelona, the Republican military position became hopeless. Following the fall without resistance of Barcelona in January 1939, the Francoist regime was recognised by France and the United Kingdom in February 1939. On 5 March 1939, in response to an alleged increasing communist dominance of the Republican government and the deteriorating military situation, Colonel Segismundo Casado led a military coup against the Republican government, intending to seek peace with the Nationalists. These peace overtures, however, were rejected by Franco. Following internal conflict between Republican factions in Madrid in the same month, Franco entered the capital and declared victory on 1 April 1939. Hundreds of thousands of Spaniards fled to refugee camps in southern France. Those associated with the losing Republicans who stayed were persecuted by the victorious Nationalists. Franco established a dictatorship in which all right-wing parties were fused into the structure of his regime.

The war became notable for the passion and political division it inspired worldwide and for the many atrocities that occurred. Organised purges occurred in territory captured by Franco's forces so they could consolidate their future regime. Mass executions on a lesser scale also took place in areas controlled by the Republicans, with the participation of local authorities varying from location to location.