Catalonia
Catalonia is an autonomous community in the northeastern corner of Spain, designated as a nationality by its Statute of Autonomy. Catalonia consists of four provinces: Barcelona, Girona, Lleida, and Tarragona. The capital and largest city, Barcelona is the second-most populated municipality in Spain and the fifth-most populous urban area in the European Union. It comprises most of the former Principality of Catalonia. It is bordered by France and Andorra to the north, the Mediterranean Sea to the east, and the Spanish autonomous communities of Aragon to the west and Valencia to the south. The official languages are Catalan, Spanish, and the Aranese dialect of Occitan. In the late 8th century, various counties across the eastern Pyrenees were established by the Frankish kingdom as a defensive barrier against Muslim invasions. In the 10th century the County of Barcelona became progressively independent.