Legend traces the origin of the pilgrimage of Le Puy to an apparition of the Blessed Virgin to a sick widow whom St. Martial had converted. No French pilgrimage was more frequented in the Middle Ages. Charlemagne came twice, in 772 and 800; there is a legend that in 772 he established a foundation at the cathedral for ten poor canons (chanoines de paupérie), and he chose Le Puy, with Aachen and Saint-Gilles, as a centre for the collection of Peter's Pence.