The University of Lleida (; , ) is a university based in Lleida (Catalonia), Spain. It was the first university in Catalonia and the whole Crown of Aragon. It was founded between 1297 and 1301, probably with the name of Estudi General (Studium Generale) in the style of other Universities founded at that time (such as the University of Valencia), and closed down through a royal law or "Real Cédula" in 1717 along with the banning of the rest of Catalan Universities and the original political institutions of Catalonia. Felipe V founded a university in Cervera, a town 70 km. east of Lleida whose authorities had supported his side in the Spanish War of Succession in 1713, which replaced all Catalan universities.