Madrid is in the center of Spain and is Spain's capital. It is also the most populated city with about 5 million people. Madrid was officially made capital in 1561, under Philip III rule. It slowly started to become a city from there. Madrid is one of the highest capitals in Europe sitting at around 2,120 feet.
Source:https://www.britannica.com/place/Madrid
Source:https://www.britannica.com/place/Madrid