Charles II (born November 6, 1661, Madrid, Spain—died November 1, 1700, Madrid) was the king of Spain from 1665 to 1700 and the last monarch of the Spanish Habsburg dynasty.
Charles’s reign opened with a 10-year regency under the queen mother, during which the government was preoccupied with combatting the ambitions of the French king Louis XIV in the Low Countries and with intrigues at court involving the Queen, her Jesuit confessor Johann Eberhard Nithard, her subsequent favourite Fernando de Valenzuela, and the king’s natural-born half brother Juan José de Austria (1629–79). Of the two phases in the King’s personal government, the first, concerned with resistance to the French imperialism of Louis XIV, ended with the peace of Rijswijk in 1697; the second, the last three years of the reign, was dominated by the succession problem, for by then it was clear that Charles would father no children.
At the peak of the succession problem, when the Austrian and French parties at the Spanish court were prepared to use any means to gain the support of the wretched king, Charles II obstinately defended the majesty of the crown and was determined to preserve its territorial integrity. In this latter aim he failed, for his death led to the War of the Spanish Succession and the dismembering of Spain’s European possessions.