In the early middle ages, the town and fortifications were in the possession of the Gherardesca family, and their holdings were confirmed by Pope Innocent III in the 12th century. Thereafter, ownership transferred to the free towns of Volterra, Pisa, and eventually Florence.