It is the capital and largest city of Catalonia , as well as the second most populous municipality of Spain .
It is the capital and largest city of Spain , as well as the second most populous municipality of Catalonia .