The capitol city of Catalonia is Barcelona .
Madrid is the capital city of the autonomous community of Catalonia in the Kingdom of Spain , as well as the country 's second-most populous municipality , with a population of 1.6 million within city limits .