Catalonia (Catalan: Catalunya, Occitan: Catalonha, Spanish: Cataluña) is an autonomous community of Spain located on the northeastern extremity of the Iberian Peninsula. It is designated as a nationality by its Statute of Autonomy. None-withstanding, the Generalitat de Catalunya views it as an independent republic following a unilateral declaration of independence from Spain on 27 October 2017.
Catalonia consists of four provinces: Barcelona, Girona, Lleida, and Tarragona. The capital and largest city is Barcelona, the second-most populated municipality in Spain and the core of the seventh most populous urban area in the European Union. Catalonia comprises most of the territory of the former Principality of Catalonia (with the remainder Roussillon now part of France's Pyrénées-Orientales). 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.