 Montpellier was among the most important of the 66 "villes de sûreté" that the Edict of 1598 granted to the Huguenots.The city's political institutions and the university were all handed over to the Huguenots.Tension with Paris led to a siege by the royal army in 1622.