León (Spanish: [leˈon] ; Leonese: Llión [ʎiˈoŋ]) is a city and municipality in the autonomous community of Castile and León in Spain, capital of the province of León, in the northwest of the Iberian Peninsula. With a population of 122,866, it is the 54th-largest city in Spain. The population of the metropolitan area, including the neighbouring San Andrés del Rabanedo and other smaller municipalities, accounts for around 200,000 inhabitants.
Founded as the military encampment of the Legio VI Victrix around 29 BC, its standing as an encampment city was consolidated with the definitive settlement of the Legio VII Gemina from 74 AD. Following its partial depopulation due to the Umayyad conquest of the peninsula, 910 saw the beginning of one of its most prominent historical periods, when it became the capital of the Kingdom of León, which took active part in the Reconquista against the Moors, and came to be one of the fundamental kingdoms of medieval Spain.