Barcelona is a city located in Spain. It is the capital city of the autonomous community of Catalonia in Spain and the countrys second-largest city, with a population of 1.6 million within its administrative limits. Barcelona is located on the northeast coast of the Iberian Peninsula, facing the Mediterranean Sea, on a plain approximately 5 km (3 mi) wide limited by the mountain range of Collserola, the Llobregat river to the southwest and the Besòs river to the north.