After the dethronement of Bernabò, the building passed to his nephew Gian Galeazzo, the first duke of Milan.
Between 1425 and 1440, Duke Filippo Maria Visconti took great care of the castle and the surrounding park.
[3] After the period of the Ambrosian Republic (1447-1450), the castle was abandoned, and part of its land was sold.
In 1496, Ludovico il Moro expanded it, restoring its function of a country villa for hunting and parties.
The tower assumed the shape with the overlapping volumes, typical of the Sforza architecture, as it appears at the Castello Sforzesco in Milan.