 During the Middle Ages it was initially under Lombard rule, and later under the Visconti di Campiglia and the Abbey of San Salvatore.Troops of San Casciano took part at the Battle of Montaperti in 1260.The last Visconti ruler was Monaldo, who was also "podestà" of Florence in 1389.