The place was known as Graupellum or Ripellium in the 9th century. It was the curtis granted by King Berengar I to the faithful Folcuino called Vasingone in 900. Subsequently, it came under the dominion of Bernard, Count of Parma, (since 996, also of Pavia). He and his wife Rolinda, daughter of King Ugo, regained the property after it had been confiscated by Emperor Otto II and awarded it to the vicarage of the Most Holy Trinity of Pavia, founded by them. It soon fell under the dominion of the Beccaria family, the Viscounts of Breme and Gropello, who shared the estate, divided into family lines, in the following centuries. The estate included Zerbolò and Carbonara Ticino and it was inherited, at least in part, by the Lonati Viscounts. Through marriage, it became property of Count Lorenzo Taverna. After the abolishment of feudalism (1797), the Taverna continued to be the owners of the castle and a large piece of land, but sold it to Carlo Cairoli, a surgeon from Pavia, in 1845. His five sons were the famous Cairoli brothers, heroes of the Italian Risorgimento. The municipality took its present name in their honour in 1888. Carlo Cantoni, philosopher and expert on Kant, a close friend of Benedetto Cairoli and Senator of the Kingdom since 1898, was another famous inhabitant of Gropello.