The Santiago de Compostela Archcathedral Basilica (Spanish and Galician: Catedral Basilica de Santiago de Compostela) is part of the Metropolitan Archdiocese of Santiago de Compostela and is an integral component of the Santiago de Compostela World Heritage Site in Galicia, Spain. The cathedral is the reputed burial place of Saint James the Great, one of the apostles of Jesus Christ. It is also among the remaining churches in the world built over the tomb of an apostle, the other ones being St Peter's Basilica in Vatican City, St Thomas Cathedral Basilica, Chennai in India and Basilica of St. John in Izmir, Turkey.
The archcathedral basilica has historically been a place of on the Way of St James since the Early Middle Ages and marks the traditional end of the route. The building is a Romanesque structure, with later Gothic and Baroque additions.
According to the legend, the apostle Saint James the Great brought Christianity to the Iberian Peninsula. According to legend, this tomb was rediscovered in AD 814 by Pelagius the Hermit, after he witnessed strange lights in the night sky above the Libredon forest. Bishop Theodomirus of Iria recognized this as a miracle and informed king Alfonso II of Asturias and Galicia (791–842). The king ordered the construction of a chapel on the site. Legend has it that the king was the first to this shrine. This was followed by the first church in AD 829 and then in AD 899 by a pre-Romanesque church, ordered by king Alfonso III of León, which caused the gradual development of this major place of .
In 997 the early church was reduced to ashes by Al-Mansur Ibn Abi Aamir (938–1002), army commander of the caliph of Córdoba. St James' tomb and relics were left undisturbed. The gates and the bells, carried by local Christian captives to Córdoba, were added to the Aljama Mosque. When Córdoba was taken by king Ferdinand III of Castile in 1236, these same gates and bells were then transported by Muslim captives to Toledo, to be inserted in the Cathedral of Saint Mary of Toledo.