Later the municipal territory was held by the Visconti and Sforza families until, in the 16th century, it fell under the control of Spain and then of Napoleon.
Afterward, the municipality's jurisdiction passed to the Visconti and Sforza families, but in the 16th century, it fell under Spanish control and later that of Napoleon.