The capital city of Spain is Madrid. Also the country's largest city and the residence of its monarch, Madrid is located in the heart of the country along the Manzanares River.
Spain also has a number of autonomous regions, each of which has its own capital city. In history, Spain has had a number of different capital cities. Under the Visigoths during the 5th century AD, the capital was at Toledo, and the Byzantines set up a capital at Málaga. The Muslim invaders who conquered Spain in the 8th century set up their capital at Córdoba. However, apart from a brief period in the early 17th century, Madrid has been the capital of Spain since 1561, when Phillip II moved his court there.