The area had already been settled in
Roman times, when a
castrum or at least a watchtower was erected to control the traffic on the
road from
Italy to the province of
Noricum in the north. According to legend, one
Carinthian noble
Cacellino (Kazelin), a member of the
Aribonids dynasty, about 1084/85 ceded his Friulian estates around Moggio to his brother-in-law Patriarch Frederick of
Aquileia. Though the deed of donation has been identified as a fake, it is documented that in 1119 Frederick's successor
Ulrich of Eppenstein established a
Benedictine monastery at the site, dedicated to
Saint Gall. By an 1185
bull of
Pope Lucius III, the abbey was directly subordinate to the
Holy See. With the Patriarchate of Aquileia, the monastic community decayed in the 15th century. When most of Friuli was conquered by the
Republic of Venice in 1420, the monks had to accept Venetian overlordship with their domains incorporated into the
Domini di Terraferma. The monastery was finally dissolved in 1773, a few years later the Moggio area fell to the
Habsburg monarchy according to the 1797
Treaty of Campo Formio and became part of the
Austrian Kingdom of Lombardy–Venetia by resolution of the
Congress of Vienna in 1815. Upon the
Third Italian War of Independence in 1866, it fell to the newly established
Kingdom of Italy. ==Twin towns==