The Frankish king Pepin the Short had, by the Donation of Pepin, given the pope the "Papal States" and the territory north of that swath of papally-governed land was ruled primarily by Lombard and Frankish vassals of the Holy Roman Emperor until the rise of the city-states in the 11th and 12th centuries.