Barcelona is 160 km (100 mi) south of the Pyrenees mountain range and is nestled in between the mouths of the rivers Llobregat and Bes , and the shores of the Mediterranean . It has an altitude of 4 m above sea level and has the following distances from: Tarragona (98 km), Girona (100 km), Lleida (156 km), Huesca (274 km), Castellon (284 km), Zaragoza (296 km) and Madrid (621 km).