 The latter included Mogliano in the district of Fermo within the Papal States, of which it was one of the most important castles; in 1569 Mogliano became autonomous under Pope Pius V, but in 1578 it was returned under the district of Fermo.After Italy was conquered by the French during the French Revolutionary Wars, Mogliano was included in the Department of Tronto; in 1815, with the restoration of the Papal rule, it was returned under the Delegation of Fermo, and finally, in 1828, it joined the Delegation of Macerata.After the annexation of the Marche to the Kingdom of Italy and the division of the Marche into four provinces, Mogliano was included in the province of Macerata.