 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.In 1842 the University was relocated to Barcelona, which portended an important economic loss.