Joseph Bonaparte reluctantly left Naples and arrived in Spain just in time for the Spanish revolt against French rule, and the beginning of the Peninsular War, in which the French were eventually expelled by Spanish guerrilla fighters and by an Anglo-Portuguese army. The Spanish remain loyal to their former king, Ferdinand VII.Bonaparte abdicated and returned to France after defeat at the Battle of Vitoria. He was seen by Bonapartists (supporters of Napoleon I) as the rightful Emperor of the French after the death of Napoleon's own son Napoleon II in 1832. 