Why is the Basilica also called St. John Lateran?

Why is the Basilica also called St. John Lateran?

It was dedicated to St. John the Baptist and St. John the Evangelist, so the reference is to the two Johns associated with our Lord. They became associated with the Basilica owing to the monks from the monastery of St. John the Baptist and St. John the Divine who served there.