In October, the Nationalists launched a major offensive toward Madrid, reaching it in early November and launching a major assault on the city on November 8. The Republican government was forced to shift from Madrid to Valencia, out of the combat zone, on November 6. However, the Nationalists' attack on the capital was repulsed in fierce fighting between November 8 and 23. A contributory factor in the successful Republican defence was the arrival of the International Brigades, though only around 3,000 of them participated in the battle. Having failed to take the capital, Franco bombarded it from the air and, in the following two years, mounted several offensives to try to encircle Madrid.