The tradition for the building of the Basilica of St. John at the Latin Gate places its construction during the pontificate of Pope Gelasius I (492-496).
In the 8th century, the Basilica was restored by Pope Adrian I, and later the bell-tower and portico were added, and at the end of the 12th century the Basilica was reconsecrated by Pope Celestine III.