The church was profoundly transformed after the 14th century, when the Bishop of Porto, Afonso Pires, selected the chapel to bury his earthly remains, ""redoing the church entirely"". In addition to his sarcophagus, today located in the principal nave, there are few remnants of this changes, which (by 1643) Luís Pinto de Sousa Coutinho had integrated into his estate. The new landowner was also responsible for restoring and integrating the styles of his mansion with the chapel, expanding the staircase and affixing heraldic arms on the principal façade. He also reconstructed the building, converting the medieval chapel's exterior into a 17th-century building.