the town in 1218 under King James I of Aragon, and again in 1358–59 and in 1367. King Peter III of Aragon died while staying at the royal palace in Vilafranca in 1285. Vilafranca is the birthplace of Raymond of Penyafort, O.P., a Catalonian Dominican (O.P.) friar born around 1175. St. Raymond compiled the Decretals of Gregory IX, a collection of canon law that remained the major corpus of canon law in the Roman Catholic Church until the 1917 and 1983 Codes of Canon Law. He was also instrumental in the founding of the Mercedarian Friars.