Answer
Charles II succeeded Philip IV as King of Spain. Charles II was Philip IV's son and the last of the Habsburg dynasty to rule Spain. His reign was marked by economic decline and political instability, and he died childless in 1700, leaving the Spanish throne to his grandnephew, Philip V of the Bourbon dynasty.