Madrid is the capital and largest city of Spain, located in the center of the country. It has been Spain's capital since 1561 (except briefly 1601-1606). Barcelona is the capital of Catalonia, Granada is in Andalusia, and San Sebastian is in the Basque Country, all important cities but not the national capital.