information:extraction, structural:summarization, information:filtering, quality:corruption
Location

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. This plain covers an area of 170 km (66 sq mi), of which 101 km (39.0 sq mi) are occupied by the city itself. It is 120 km (75 mi) south of the Pyrenees and the Catalan border with France.

Tibidabo, 512 m (1,680 ft) high, offers striking views over the city and is topped by the 288.4 m (946.2 ft) Torre de Collserola, a telecommunications tower that is visible from most of the city. Barcelona is peppered with small hills, most of them urbanized, that gave their name to the neighbourhoods built upon them, such as Carmel (267 m or 876 ft), Putget (es) (181 m or 594 ft) and Rovira (261 m or 856 ft). The escarpment of Montjuïc (173 m or 568 ft), situated to the southeast, overlooks the harbour and is topped by Montjuïc Castle, a fortress built in the 17–18th centuries to control the city as a replacement for the Ciutadella. Today, the fortress is a museum and Montjuïc is home to several sporting and cultural venues, as well as Barcelona's biggest park and gardens.

The city borders on the municipalities of Santa Coloma de Gramenet and Sant Adrià de Besòs to the north; the Mediterranean Sea to the east; El Prat de Llobregat and L'Hospitalet de Llobregat to the south; and Sant Feliu de Llobregat, Sant Just Desvern, Esplugues de Llobregat, Sant Cugat del Vallès, and Montcada i Reixac to the west. The municipality includes two small sparsely-inhabited exclaves to the north-west.