Documents from 1164 indicate that Emperor Federico Barbarossa conceded a castle or fortress at Montesegale to Pavia.
In 1415, in retribution for a rebellion against Filippo Maria Visconti, his general Carmagnola captured and destroyed the castle.
In 1451, Palatine Count Ottino Gambarana, the son of Guido, obtained from Duke Francesco Sforza restoration of his feudal inheritance.
The portal to the inner courtyard has a Latin epigraph that reads "Fiat pax in virtute tua et habondantia in turribus tuis" (Psalms 121:7 [Vulgate]: "May there be peace in your strength and prosperity within your towers").
The castle portico has heraldic shields of the Gambarana family.