We must now turn for a few moments to its history, on which great uncertainty rests. Some authors say that S. Michele at Pavia was built by Constantine the Great as a thank-offering for the aid given him by that Saint in his victory over the Franks in 325; but it is possible they may have confused this church with the one which Sozomenus asserts that Constantine erected to St. Michael on the banks of the Hellespont. Other writers, of whom Malaspina is one, claim it as an Ostrogoth foundation; others again, finding a suspicion of Arianism in the sculpture of the Annunciation on the south side of the church, assign it to Agilulf before his conversion from Arianism; while Gabriel Rosa, author of Storia dei feudi e dei comuni in Lombardia, attributes it to King Grimoald.

This last, however, is disproved by one of Paulus Diaconus' curious stories. He says "that in A.D. 661, King Bertharis being in peril of his life by the usurper Grimoald, was saved by his faithful servant Unulphus, who, throwing over his royal master's shoulders a blanket and a bearskin, drove him with ill words out of the palace, making believe he was a drunken slave. Having thus eluded the guards, who were in Grimoald's pay, and put the king in safety, Unulphus fled for refuge to the Basilica of St. Michael, till the new king pardoned him."[41] The church is again mentioned by Paulus Diaconus when he relates how in 737, when Luitprand judged Pemmonis, Duke of Friuli, and other noble Longobards accused of sacrilege against Callistus, Patriarch of Aquileja, one of them named Ersemar fled for refuge to the Basilica of St. Michael. Again in 774 a certain Trinidius, agent of King Desiderius, left a house near the Pò at Gravenate, as a legacy to the "Basilica beatissimi Archangeli Michaelis intra civitatem Ticinensum pro anima sua." All these things go to prove that the church existed before Luitprand's time, and that it was especially venerated.

St. Michael, being a warlike saint, was the Longobards' favourite object of reverence. When Alachi tried to depose King Cunibert, he suddenly and mysteriously refused to fight the king, because he saw a vision of St. Michael standing beside him; then Alachi knew the battle would go against himself if he hazarded it.

When the Longobards went forth to war, they carried the effigy of St. Michael before them on their standard. It was also impressed on their coins with the inscription S. C. S. Màhel, or sometimes Mihail, spelling in those days not being at all a fixed quantity.

But to return to our church-building king, Luitprand.

He erected the monastery of S. Abbondio at Bercela in the mountains, and one dedicated to S. Anastasia, near his suburban villa called Cortelona (Corte di Alona). In this villa he had a private chapel, he being the first prince who had daily mass said by priests in his own house.[42] He had a favourite doctor named Gunduald, who, assisted by Luitprand's royal munificence, founded the monasteries of Palazzolo and Pitiliano near Lucca. At his intercession Luitprand, by a diploma dated 742, gave Magister Piccone, Gunduald's architect, lands in Sabine, which shows the value Luitprand set on the arts, and this Magister especially.

Astolfo, a later king, was an equally liberal patron of the arts; he gave the revenues of the church of S. Pietro at Pavia to Auripert, a painter whom he greatly esteemed. Astolfo built the monastery of Nonantola, of which some parts still remain, proving its fine architecture. He seems to have been very unscrupulous in his avidity for relics; an anonymous MS. at Salerno, speaking of his fierceness and audacity, says that, "having taken many bodies of saints from the neighbourhood of Rome, he had them removed to Pavia."[43] The same old chronicler does him the justice to say that "he built both churches and monasteries which he very largely endowed."

Next followed Ratchis, who on his brother Astolfo's death came out of the convent to which he had retired on abdicating in 749. His reign was of the shortest; he soon went back to his convent, for Pope Stephen III. wrote commanding him not to oppose the election of Desiderius, who had been Duke of Friuli and was high in favour with the Pope.

Desiderius was a liberal patron to the Comacine Guild, and built monasteries, churches, and palaces. Of the first we may record the convent for nuns near Milan, known as La Maggiore, or the Greater. Its foundation by Desiderius is mentioned in a diploma dated A.D. 1002 in favour of the Abbot of S. Ambrogio, who was in that year appointed spiritual guardian to the nuns. At Brescia, of which town Desiderius was a native, he built the monastery near Leno, known as the Monasterio Leonense, and the still more famous one of Santa Giulia for nuns, which he founded in 766. Desiderius and his wife Ansa endowed this convent with landed property which spread over all the Lombard kingdom. It was first called S. Salvatore, but when the remains of Santa Giulia were brought from Corsica and placed here, it was re-dedicated to her. Its first Abbess was Desiderius' own daughter, Anselberga, who took the vows here. Says the old chronicler—"its opulence and the number of holy virgins who have lived within its walls render it one of the most illustrious convents in Italy."