Following heated discussions on what to do with the castle, including a proposal by Angelo Colla to transform it into a Gothic style edifice, the decision was taken to preserve the building in its original form.
The year 1893 marks the beginning of a complex restoration and reconstruction process of the castle, which for centuries had been reduced to an army barracks. Already in 1892, under the direction of Luca Beltrami, the demolition of the Ghirlanda was undertaken, after which followed that of the Cavallerizza, a 19th century building. The two gates of Carmine and Santo Spirito were reopened, the two towers that had been lowered after the Five Days of Milan were raised again and the Bona Tower was returned to its early 16th century appearance.
The entire population took part in a public subscription to bring the castle back to it former glory. They were years of intense work, during which the layout of the buildings at time of the Sforzas was studied and the edifices that did not belong to the complex in that period were erased. Windows in terracotta reappeared as did important elements of Sforza era murals. It is at this time that the painted decorations of the Sala delle Asse and the Treasure Room came to light and the gold colours of the Ducal Chapel gradually re- emerged. The Rocchetta Keep and the Ducal Courtyard were restored to their original form and prepared to house museums and cultural institutions.
Luca Beltrami's efforts culminated in the reconstruction of the city-side façade of the building and in particular the Filarete tower, which the architect rebuilt referring to a painting by Francesco Napoletano (The Madonna Lia) and a graffito that was discovered at the Pozzobonelli farmstead. He also studied the towers of the castles of Vigevano and Cusago to be able to execute a complete and philologically accurate (according to the times) reconstruction. Before preceding to the work of reconstruction, the architect produced a full scale wooden model in 1895. The new Filarete tower was dedicated to King Umberto I and inaugurated in a solemn ceremony on 24th September 1905. It marked the opening of a new chapter in the history of the castle.