Peter IV, having conquered in 1344 the town of Perpignan and reunited to his estates the Kingdom of Majorca, of which Perpignan became its capital, compensated that city for its loss of power by founding, at the request of the magistrates, 20 March 1349, the University of Perpignan, for the teaching of civil and canon law, and other arts and sciences. In the charter he praised "the deep learning of the professors of Perpignan".