Spain derives from Hispania, the Roman name for the Iberian Peninsula. Madrid became the capital only in 1561 under Philip II—over a millennium after the name "Spain" was established.