When the war was finished, Cervera, which had been destroyed, decided to give support to the ones who were governing (the Bourbons) and sent two ambassadors to the Courts with the mission to persuade the ministers of Philip V of his absolute support, with the goal to obtain some logical compensation and in one of their 30 requests, they requested one university like the one in the city of Lleida. Philip V, then, built the University of Cervera and closed the rest (the Nueva Planta decrees). The creation of the university gave an economic boost to the town, basically (among other reasons) because students lodged in the town.