Later it was part of the Lombard Duchy of Spoleto and of the gastaldate of Nocera, which, after the Frank conquest in the late 8th century, became the county of Nocera.