Charles II of Spain was the last Habsburg king of Spain, reigning from 1665 until his death in 1700. His reign is often marked by the decline of Spanish power and the significant dynastic struggles that followed his death, including the War of the Spanish Succession, which profoundly impacted the balance of power in Europe.