The Siege of the Alcázar at Toledo early in the war was a turning point, with the rebels winning after a long siege. The Republicans managed to hold out in Madrid, despite a Nationalist assault in November 1936, and frustrated subsequent offensives against the capital at Jarama and Guadalajara in 1937. Soon, though, the rebels began to erode their territory, starving Madrid and making inroads into the east. The north, including the Basque country, fell in late 1937, and the Aragon front collapsed shortly afterward. The bombing of Guernica was probably the most infamous event of the war and inspired Picasso's painting. It was used as a testing ground for the German Luftwaffe's Condor Legion. The Battle of the Ebro in July–November 1938 was the final desperate attempt by the Republicans to turn the tide. When this failed and Barcelona fell to the rebels in early 1939, it was clear the war was over. The remaining Republican fronts collapsed, and Madrid fell in March 1939.