The church was built outside the walls of
Pavia and along the ancient Roman road that connected Pavia with
Cremona and
Piacenza already during the
Lombard Kingdom, in 737, in fact, the bishop
Theodore of Pavia, while returning from
Rome, was welcomed by the inhabitants of Pavia at the church. In 929, to prevent the plague epidemic that raged in the city, King
Hugh of Italy brought to Pavia the relics of
Saint Columbanus, which, before being deposed in the
Basilica of San Michele Maggiore, were exposed in the church of Saint Peter "of the lepers". Probably therefore, in the 10th century the church also housed a hospital for the treatment of
leprosy patients. Around the first years of the 11th century, the
monastery of Santa Maria Teodote founded a male
Benedictine monastery at the church, which in the 12th century managed to become independent of Santa Maria Teodote. In 1238 Bishop Rodobaldo II granted the church the title of
parish and in 1250, in the tax registers of the municipality of Pavia, the parishes, although located outside the city walls, was included in those of
Porta Palacense. Also during the 13th century, around the church and along the road were several houses and taverns, so that the population of the parish, around the beginning of the 14th century, could count about 300 inhabitants. From at least 1315, the church and the monastery came under the control of the aristocratic Astari family of Pavia, who succeeded in imposing, at least until 1486, many abbots selected from the members of the family. In 1397,
Gian Galeazzo Visconti, before being proclaimed count of Pavia in the basilica of San Michele Maggiore, stopped in the church, where he received homage from the authorities and aristocrats of Pavia, who organized a
tournament in the square of the church in his honor. In 1486 the Benedictines left the monastery and were replaced by the
Cistercians of
Chiaravalle Abbey. Between October 1524 and February 1525, during the siege that preceded the
Battle of Pavia, the monastery and the village around the church were occupied by
Swiss mercenaries hired by the King of France
Francis I and were devastated, so that the inhabitants and monks had to take refuge inside the walls of Pavia. In 1798 the
Cisalpine Republic suppressed the monastery, which was partly sold to private individuals, while the church was transformed into a parish. The population of the parish was 1056 in 1807, rising to 1545 in 1877. == Architecture ==