This article covers the Spanish Civil War in the period from the start of 1938 to the end of 1939. For a historical context, see Timeline of Spanish history#20th century.
By this period, Francisco Franco had already become dominant, yet the outcome of the war was still not certain. This was to progressively change as the Nationalist forces notched up several victories.
The Battle of Teruel was an important confrontation between Nationalists and Republicans. The city belonged to the Republicans at the beginning of the battle, but the Nationalists conquered it in January. The Republican government launched an offensive and recovered the city, however the Nationalists finally conquered it for good by February 22. On April 14, the Nationalists broke through to the Mediterranean Sea during the Aragon Offensive, cutting the government-held portion of Spain in two. The government tried to sue for peace in May, but Franco demanded unconditional surrender, and the war raged on. The Nationalist army pressed southward from Teruel and along the coast toward the capital of the Republic at Valencia but were halted in heavy fighting along the fortified XYZ Line.
The government now launched an all-out campaign to distract the Nationalists from their attack on Valencia and to reconnect their territory in the Battle of the Ebro, beginning on July 24 and lasting until November 26. Although the campaign was militarily successful at first, it was fatally undermined by the Franco-British appeasement of Adolf Hitler in the Munich Agreement. The concession of Czechoslovakia destroyed the last vestiges of Republican morale by ending all hope of an anti-fascist alliance with the great powers. The Republicans were eventually defeated and withdrew in November 1938, another significant step towards Franco's final victory.
The retreat from the Ebro all but determined the final outcome of the war. Eight days before the new year, Franco struck back by throwing massive forces into an invasion of Catalonia.