 Destroyed by the Lombards in 578, it was subsequently joined to the bishopric of Camerino.From the 9th century, Matelica was under the indirect rule of the Holy Roman Empire (while belonging formally to the Papal States), then becoming a free municipality in 1160.In 1174, it was again obliterated, this time by the army of Christian I (Archbishop of Mainz).