 During the period of Austrian rule, which ended in 1866 after the Third Italian War of Independence, major renovation work took place inside the castle.The Austrians turned it into a military garrison and the munition store they constructed was later used by the "Guardia di Finanza" of the Kingdom of Italy as a prison.Since 1902, the castle has been a national monument.