Later the town was a possession of the Torriani and (from 1277) of the Visconti families. In the early 14th century, the town became a free commune under the suzerainty of the abbey. In 1439 it was acquired by Vitaliano Borromeo and, as a result, the House of Borromeo.