Quito formally San Francisco de Quito, is the capital city of Ecuador, and at an elevation of 9,350 feet (2,800 meters above sea level), it is the highest capital city in the world housing the administrative, legislative and judicial functions. It is located in north-central Ecuador in the Guayllabamba river basin, on the eastern slopes of Pichincha, an active stratovolcano in the Andes mountains. With a population of 2,239,191 according to the last census (2010), Quito is the second most populous city in Ecuador, after Guayaquil. It is also the capital of the Pichincha province and the seat of Metropolitan District of Quito. The canton recorded a population of 1,842,201 residents in the 2001 national census. In 2008, the city was designated as the headquarters of the Union of South American Nations.