When did Madrid become capital of Spain?
History of Madrid
{'answer_start': array([282]), 'answer_text': array(['1606'], dtype=object)}
The documented history of Madrid dates to the 9th century, even though the area has been inhabited since the Stone Age. The development of Madrid as a city began when Philip II moved his court there from Toledo in the 1560s. Madrid has been the country's capital continuously since 1606.