During the French Revolutionary Wars, the French army invaded Switzerland and turned it into an ally known as the "Helvetic Republic" (1798–1803). It had a central government with little role for cantons. The interference with localism and traditional liberties was deeply resented, although some modernizing reforms took place.