A city of northernwestern Spain, at the edge of the central plateau, Burgos has about 170,000 inhabitants in the city proper and another 10,000 in its suburbs. It is the capital of the province of Burgos. Founded in the 9th century, but retaining its Visigothic name signifying consolidated walled villages (burgos), the city was the seat of a Catholic bishop from the 10th century and became in the 11th century the capital of the kingdom of Castile. Burgos was a major stop for pilgrims on their way to Santiago de Compostela. Burgos had been a Celtiberian city, part of the Roman province of Hispania Citerior and then of Hispania Tarraconensis. The Visigoths drove back the Suevi, then after a brief Moorish occupation, Alfonso III the Great, king of León reconquered it in the mid 9th century. Diego Rodríguez "Porcelos", count of Castile, gathered the inhabitants of the surrounding country into one fortified village, which took the name of Burgos. The city thus defined began to be called Caput Castellae ("chief of the castles"). The territory (condado) of Burgos, subject to the Kings of Leon, continued to be governed by counts and was gradually extended; Fernán González, the greatest of these, established his independence. In 1574 Pope Gregory XIII made its bishop an archbishop, at the request of Philip II. Burgos still possesses more ecclesiastical monuments than any other Spanish city, not even excepting Toledo. The three most outstanding are the cathedral, with its chapel of the Condestable, the monastery of Las Huelgas, and the Carthusian monastery of Miraflores (see below). Burgos has been the scene of many wars: with the Moors, the struggles between León and Navarre, and between Castile and Aragon. In the Peninsular War against Napoleonic France, Burgos was the scene of a battle, and again in the 19th century Carlist civil wars of the Spanish succession. During the Spanish Civil War Burgos was the base of Gen. Franco's rebel Nationalist government.