 The castle was destroyed or burnt several times, but was rebuilt on each occasion.The last reconstruction dates from 1370.It was commissioned by Bernabò Visconti, who was later imprisoned there until his death.