According to one legend, the monastery was built on the site of a former pagan temple dedicated to the goddess Aphrodite Pyrene. According to another, the monastery evolved out of a chapel dedicated to St Peter built by three persecuted monks, who had hidden the relics of the saint in a nearby cave for safekeeping. Whatever its origin, the golden age of the monastery of Sant Pere de Rodes was during the 10th-13th centuries, after which it fell into decline and was later abandoned by the monks. Restoration works have saved the site from ruin and it is now one of the most representative examples of Romanesque architecture in Catalonia.