After the fall of the Western Roman Empire, it fell to the Lombards in 569 or 574. In 781 it became part of the Papal States. In 967–1066 it was a fief of the Anguillara family and then of the marquises of Tuscany.