Relations of Napoleon with Spain—Treaty of Fontainebleau—Junot marches to Portugal—Flight of the Braganzas to Brazil—French troops proceed into Spain—Dissensions in the Court—Both parties appeal to Napoleon—Murat occupies Madrid—Charles and Ferdinand abdicate at Bayonne—Joseph Buonaparte crowned King of Spain.Insurrection of the Spaniards and Portuguese—Their Alliance with England—Battle of Riosecco—Joseph enters Madrid—First Siege of Zaragossa—Dupont's March into Andalusia—The Battle of Baylen—Dupont Surrenders—Joseph quits Madrid—Situation of Junot—Arrival of Sir Arthur Wellesley—Battle of Roriça—Battle of Vimiero—Convention of Cintra.CHAPTER XXIV