A primitive basilica was constructed sometime in the 4th century. Influenced by this decision, King Theodemar of the Suebic Kingdom of Galicia created the Diocese of Egitânia in 559-569. Around 585, the cathedral started to be constructed, that included not only the main structure by the baptistery and the hypothetical palace. In 715 however, the diocese was suppressed, due to the Moorish invasion of Iberia, rendering the church's cathedral function void. Between the 9th and 10th century, during the Moorish occupation, the temple was transformed into a mosque. Following the Reconquista, a new chapel was erected, re-using the materials from the previous construction. Gualdim Pais, Master of the Knights Templar was donated the region of Idanha-a-Velha by D. Afonso Henriques in 1165. Thirty years later amed after its new see as Diocese of Guarda, which built its own cathedral and abandoned the Egitânia title, without awarding Co-cathedral status. In 1229, Master Vicente, then Bishop Guarda, received the donation of the couto of Idanha, but Marim Martins became the new master in 1244. In 1326, the Templar Knights received 500 pounds from the Commander of Rio Frio, for the "spiritual" benefit and temporal needs of the local population. In addition, 100 libras was received from the commanderies of Almourol and Cardiga and 100 for the "spiritual" needs of Proença. Work to renovate the old cathedral were initiated in 1497 by King D. Manuel, who added an additional 5 réis annually for its maintenance. Part of the monies went to the construction of new doorway. But, by the 16th century, the church was found partially buried, and work was initiated to recuperate the site, resulting in the correction of the orientation of presbytery. On 10 October 1505, D. João Pereira and Father Francisco, extended the commandery following the death of Father Garcia Afonso, during a state visit. The visitors described a church as including three naves, with seven arches on the right and four on the left, along with two entrance-way. The entrance-way was constructed of sculpted stone, and protected by awning supported by stone columns and covered in tile. Over the principal portico was a stone belfry with two bells and decorated with a weather vane, while to the left of the awning was a building with five arches. The presbytery included vaulted ceiling in granite, with altar over column under a sculpted imagery of the Virgin Mary. There were lateral altars dedicated to Santo António and São Sebastião, with painted sculptures, in addition to images of Santa Catarina and São Sebastião. On 10 October 1537, Father António Lisboa visited the site and noted that there was an exterior doorway with awning, supported by five columns, 6 varas high. The chapel had 4 varas length and 4 wide, covered in azulejo tile, that included an old retable with a painting of the Virgin Mary, surmounted by red twill canopy. Alongside the chapel they constructed a sacristy, with collateral altars and painted wood. To the left of the portico was a baptismal fountain. In 1589, the Chapel of Nossa Senhora do Rosário functioned from the site, and by 1593, a new portico was opened on the south facade. In the 19th century, the church was transformed into a local cemetery, as a result losing it cultural role. The first archaeological prospecting began in 1955, under the responsibility of Fernando de Almeida, the artifacts extract were dispersed throughout various museums and particular collections. In 1960, under the same direction, new archaeological excavations were undertaken in the interior, resulting in the lowering of the pavement and consolidation of the structure. The DGEMN began a plan to construct a new cover in 1962, that was implemented in 1964-1965, financed by Calouste Gulbenkian Foundation. Restoration on site began in 1964, with the consolidation of walls, reconstruction of the facade, leveling of the lateral walls, construction of the roofing and opening of the window over the principal door. A new phase of restoration occurred between 1969 and 1971, supplemented in 1986 by work to benefit the cathedral and baptistry. Between 1987 and 1988, under the direction of Artur Corte Real, there were emergency interventions in the necropolis. The following year, in a joint operation by IPPC and DGEMN, the cover the baptistery, fence and pedestrian accesses were unproved. The site was ceded to the IPPAR Instituto Português do Património Arquitectónico on 12 February 1998. The IPPAR initiated work to improve the site, that lasted until 2006, that included a metallic structure around the baptistery and erection of glass to protect some parts of the site. As part of the Plano de Aldeia of the Aldeias Históricas de Portugal , interventions on the property were initiated under architect Alexandre Costa by the IPPAR.
Architecture
The cathedral lies in a fortified settlement situated on the right margin of the River Ponsul, implanted in the lowlands south of Monsanto. The church is situated within the walls, alongside the gate south of the wall. The cathedral has a rectangular plan with two orthogonal axis, comprising a principal rectangle which juxtapositions a larger rectangular space on its largest side. The principal facade is oriented to the northeast, two stories tall with an arched doorway with rectangular lintel, secondary circular oculus and belfry. Its southwest facade includes two doors with rectangular lintels on the first floor and simple window on the second register. In the northwest, the doorway is surmounted by a small decorated gable flanked by four gaps. On the superior register, corresponding to the clerestory of the central nave, with seven-arched openings. On the southeast, is a window with straight lintel and two slits, integrating an apparatus and Roman inscription, while on the second register there are five arches. There are two exterior baptisteries, one on the south entrance and another next to the principal facade. The exterior baptistery, in a cruciform plan, includes smaller adjacent tanks. A cistern is addorsed to the church, left of the principal portico.
Interior
The three nave plan has wood flooring and slabs of granite, with access staircase in rose marble. The central nave is longer and wider than the lateral lengths, separated by arches, on columns and pilasters. Walls on the southeast and northeast have arcades of masonry, while the northeast have arches over decorated marble. The entire space is covered in wood ceiling. The southeast lateral chapel is rectangular and covered in vaulted ceiling, with a mural painting that represents St. Bartholomew with the devil at his feet and decorative flourishes. Covered in shell-type covering, the chapel of Our Lady of the Rosary, integrates the upper part of the wall, dating to 1593, and is decorated with geometric, zoomorphic, cruciform and angel heads. There are also vestiges of a mural painting between the two chapels, that represents Calvário, Cruz de Cristo and Santo António.