The County of Portugal (Galician-Portuguese: Comtato de Portugalle; referred to as Portugalia in contemporary documents) refers to two successive medieval counties in the region around Guimarães and Porto, today corresponding to litoral northern Portugal, within which the identity of the Portuguese people formed. The first county existed from the mid-ninth to the mid-eleventh centuries as a vassalage of the Kingdom of Asturias and the Kingdom of Galicia and also part of the Kingdom of León, before being abolished as a result of rebellion. A larger entity under the same name was then reestablished in the late 11th century and subsequently elevated by its count in the mid-12th century into an independent Kingdom of Portugal.