In 1519, Charles I now ruled the Kingdom of Aragon and its territories and the Kingdom of Castile and León and its territories, in personal union. In addition, that same year Charles was elected Holy Roman Emperor. The kingdoms of Castile and Aragon (and Navarre) remained in personal union until their jurisdictional unification in the early 18th century by the Bourbons, while Charles eventually abdicated as Emperor of the Holy Roman Empire in favour of his brother Ferdinand, and the personal union with the Spanish kingdoms was dissolved.