 In 728AD Monteveglio joined the Duchy of Persiceto.In the 11th century, Monteveglio was fundamental in Countess Matilda of Tuscany's desperate resistance to Roman Emperor Henry IV's invasion of Italy, following his humiliating defeat to Pope Gregory VII at Canossa.Supposedly, it was the death of the Emperor's son in the battle at Monteveglio that indicated to the Holy Roman Empire the difficulty of defeating the papacy, and a retreat of the Roman forces soon followed.