Philip IV ascended the thrones of Spain, Portugal and the Seventeen Provinces in 1621.
Philip IV died in 1665, leaving testament in which he had given preference to his younger daughter, Holy Roman Empress Margaret Theresa, and her descendants regarding the succession to the Spanish thrones.