The hermitage of Sant Pere has been redone on several occasions due to its poor state of preservation. The original hermitage dates from the middle of the 13th century, it was of Romanesque style and of larger dimensions. In addition, it was accompanied by an annexed house where the hermits and the donated lived, who were responsible for the maintenance of the cult and the lands attached to the hermitage. One of the most important reforms was that of 1588, under the supervision of Pere Blai (1553-1620) and which, according to some authors, would follow the Renaissance traces typical of the time. Finally, the last intervention took place throughout the 19th century and ended in the 1870s.
The privileged position of the hermitage as a viewpoint of the Camp and first bastion of the mountains of the Sierra de la Mussara has been a determining factor for some military campaigns. During the French War (1808-1814), the Napoleons occupied the hermitage and adapted it to wartime needs. They had loopholes and parapets built there in order to defend themselves from attacks. However, the French were not the only ones to occupy the chapel militarily. During the First Carline War (1833-1840), clashes continued to occur between the supporters of Isabel II (1830-1904) and Charles V (1788-1855)