It lies in north-eastern Spain, in the western part of the autonomous community of Catalonia, and is bordered by the Provinces of Girona, Barcelona, Tarragona, Zaragoza and Huesca and the countries of France and Andorra. 