In 1265, on account of the revolt of the Mudéjares, Pedro had to abandon the city of Cartagena and take refuge in the countryside, only returning after James I of Aragon had crushed the rebels and conquered Murcia. Pedro died in Cartagena during an epidemic of fevers on 19 November 1267 at seventy years of age. His body was transferred to the cathedral of Murcia in 1291.