 In 1640, the House of Braganza revolted against Spanish rule and reasserted Portugal's independence.When Spain's first Habsburg ruler Charles I became king of Spain in 1516, Spain became central to the dynastic struggles of Europe.After he became king of Spain, Charles also became Charles V, Holy Roman Emperor and because of his widely scattered domains was not often in Spain.