 From around the 9th to 10th centuries, the villages of Sonvico, Dino and Villa (later the municipality Villa Lugano, now part of Lugano) formed a community.In 1326 was testified that Sonvico and neighbors merged into a community known as The Castellanza.During the 16th century, the village of Cimadera joined The Castellanza.