Madrid has been the capital of Spain since 1561, when Philip III moved the royal court from Toledo. Madrid is located in the center of the country, and it is a major cultural and economic center. The city is home to many museums, art galleries, and theaters. It is also home to the Spanish stock exchange and the headquarters of many major Spanish companies. Madrid is a popular tourist destination, and it is known for its vibrant nightlife and its many parks and gardens.

Here are some additional details about Madrid:

* Population: 3.2 million
* Area: 604.3 km²
* Elevation: 657 m
* Climate: Continental
* Time zone: CET (UTC+1)
* Currency: Euro (€)
* Official language: Spanish

I hope this helps!
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence