Between the fifth and sixth centuries, at the time of the reign of the Ostrogoths, a Christian basilica was built with structural characteristics similar to the Ravenna churches of the Goth era, perhaps it was dedicated to the Aryan cult.
In the 11th century, a small church with an adjoining cemetery dedicated to San Pietro was built on the site, at the service of the settlement that had remained on the road, the Borgo.
In the first quarter of the 15th century the town hosted the antipope Giovanni XXIII (1370–1419) and his papal court; during the late Middle Ages Castel San Pietro was chosen for two periods as the temporary seat of the University of Bologna, which remained closed, apparently, due to serious student intemperances.
The column was built on the project of Gian Giacomo Dotti, an architect of the 18th century, and was dedicated to the Madonna del Rosario, the patron of the Castel San Pietro.
[6] Moreover, thanks to the presence of sources of sulphurous and salsobromoiodic water, Castel San Pietro Terme has been known for being a thermal locality from the Middle Age on.