The Church of the Magdalene was the ancient cathedral, but the Moors, objecting to its prominent position, compelled them to use a church on the outskirts of the town. In the records left by Miguel this was variously called Santa Maria de la Hidria, de la Vega, or de la Huerta, on account of its position. It was endowed by Teresa Cajal, mother of Pedro de Atarés and wife of García Sánchez, and was begun in 1152. Architecturally it is a combination of Byzantine and Gothic, with a high portico entrance and a high brick-trimmed tower. The centre nave with its pointed arches rises above the side aisles and merges into a spacious transept. In the windows Gothic gives place to Plateresque, but in the side chapels dedicated to St. Lawrence, St. Andrew, the Rosary, St. Peter, the Beheading of St. John the Baptist, the Annunciation, St. Elizabeth of Portugal, the Purification and St. James the Great, Gothic prevails in the reredos and tombs. Bishop Moncada attempted to rebuild the beautiful cloister which had been destroyed in the War of the Two Peters, but as late as 1529 this had not been completed.