In 1496 Emperor Maximilian I married his son Philip to Joanna of Castile. A series of dynastic inheritances brought their son Charles to the Spanish throne in 1516 and to the imperial throne of the Holy Roman Empire in 1519. In 1555–1556 he gradually relinquished his offices, leaving the Spanish possessions to his son Philip II and the imperial succession to his brother Ferdinand. He died in 1558. American gold and especially silver financed the power of the crown, but also its costly wars. Literature and the arts flourished in the age of El Greco, Velázquez, Cervantes, Teresa of Ávila and Lope de Vega.
EL GRECO, VIEW OF TOLEDO
Philip II patronised the arts and was a committed defender of Catholicism. The Inquisition restricted freedom of thought. In 1571 the Holy League defeated the Ottoman fleet at Lepanto. Religious repression and disputes over authority provoked rebellion in the Netherlands. England supported the rebels, while Francis Drake's raids against Spanish possessions and shipping strained relations between the two countries. The execution of Mary, Queen of Scots, in 1587 deepened the conflict.
THE SPANISH ARMADA
In 1588 Philip dispatched the Armada to support an invasion of England. English resistance, difficulties of coordination and storms on the return voyage defeated the enterprise. The setback did not immediately end Spanish naval power. Between 1580 and 1640 Spain and Portugal shared a monarch while retaining separate institutions.
THE SPANISH EMPIRE
During the seventeenth century, relentless wars and financial difficulties weakened Spain. The death of the childless Charles II in 1700 led to the War of the Spanish Succession and the establishment of Bourbon rule. Spain lost many of its European territories but retained most of its American empire until the wars of independence in the early nineteenth century.