The land on which Rajoy's palace was built was previously occupied by the city's civil and ecclesiastical prisons, and a section of the wall, which defended the city from the west. The double ownership of the property caused disagreements between the Bishopric and the City Council. The latter presented a project in 1764, authored by
Lucas Ferro Caaveiro, with the idea of locating the
Casa del Ayuntamiento between both prisons. For his part, the archbishop
Bartolomé de Rajoy had in mind to place there the Seminary called Confessors and the residence for the children of the cathedral choir, for which he presented a different project, commissioned to
Andrés García de Quiñones. However, in addition to the controversy between the co-owners, a third interested party emerged, the Royal Hospital, alleging that its property was being infringed. The ensuing dispute led to the intervention of the
Capitanía General de Galicia and the
Real Cámara, finally resolving, in a Solomonic manner on May 13, 1767, that the future building would house the Compostela Consistory, the Seminary of Confessors and the prisons, according to the project of the engineer
Carlos Lemaur, as had been proposed by the said Captaincy General. According to the previous resolution, the building was built according to Lemaur's plans, with the works directed by Friar
Manuel de los Mártires, and the royal executors by the masters
Juan López Freire and
Alberto Ricoy, and, according to the inscription that appears on the
frieze of the same palace, the works extended between 1766 and 1772. The palace contributed to enhancing the
Plaza del Obradoiro, which lacked a worthy building on that side, even though the imposing new western façade of the Compostela headquarters had been finished a few years earlier. == Description ==