The assault by the Napoleon's army at the end of the 18th century caused severe damage to the old fortress, as the citizens from Milan mutilated its towers and the Sforza family coats of arms. Finally, Napoleon decided that the external structure of the building should be demolished and the Castle used to quarter the troops. The frescoed rooms at the ground floor of the Corte Ducale were even used as stables.