It was an independent comune until 2014, when it merged with the neighboring municipalities of Bazzano, Valsamoggia, Castello di Serravalle, Crespellano, and Savigno.
[citation needed] During the Middle Ages, Monteveglio, along with other settlements, became part of a system of fortifications between the Samoggia and Panaro rivers, protecting inner Italy from the Lombards until the final conquest of Liutprand in 727.
[citation needed] In the 11th century, Monteveglio was fundamental in Countess Matilda of Tuscany's desperate resistance to Holy Roman Emperor Henry IV's invasion of Italy, after his humiliating defeat to Pope Gregory VII at Canossa.
[citation needed] Supposedly, it was the death of the Emperor's son in the battle at Monteveglio that proved the strength of the papal forces and prompted the invaders to retreat.
[citation needed] On 25 November 2012, a referendum was held, proposing merging Monteveglio with the neighbouring municipalities of Bazzano, Castello di Serravalle, Crespellano, and Savigno.