Catalonia is an autonomous community in northeastern Spain, with the official status of a "nationality" of Spain. Catalonia comprises four provinces: Barcelona, Girona, Lleida, and Tarragona. Its capital and largest city is Barcelona which is the second Spanish city by population after Madrid. Catalonia covers an area of 32,114 km² and has an official population of 7,535,251. Its borders essentially reflect those of the former Principality of Catalonia. It borders France and Andorra to the north, Aragon to the west, the Valencian Community to the south, and the Mediterranean Sea to the east (580 km coastline). The official languages are Catalan, Spanish and Aranese (Occitan).