While the Spanish armies were in Portugal, the French armies, with 65,000 effective, they completely controlled Spain by several years. The Spanish people rebelled against King Charles IV in 1808, who abdicated and left as sovereign to his son, Fernando VII.