 Galeazzo I Visconti of Milan obtained a notable victory over the Guelphs in the vicinity on November 29, 1321.In 1381 the Landi were declared formally independent by Gian Galeazzo Visconti, and obtained a complete autonomy in 1415.Federico and his daughter Polissena Bardi renewed the castle in the 16th-17th century, establishing a college which lasted until 1805.