<P> By the end of 1594, certain League members still worked against Henry across the country, but all relied on Spain's support . In January 1595, the king declared war on Spain to show Catholics that Spain was using religion as a cover for an attack on the French state--and to show Protestants that his conversion had not made him a puppet of Spain . Also, he hoped to take the war to Spain and make territorial gain . The conflict mostly consisted of military action aimed at League members, such as the Battle of Fontaine - Française, though the Spanish launched a concerted offensive in 1595, taking Doullens, Cambrai and Le Catelet and in the spring of 1596 capturing Calais by April . Following the Spanish capture of Amiens in March 1597 the French crown laid siege until its surrender in September . With that victory Henry's concerns then turned to the situation in Brittany where he promulgated the Edict of Nantes and sent Bellièvre and Brulart de Sillery to negotiate a peace with Spain . The war was drawn to an official close after the Edict of Nantes, with the Peace of Vervins in May 1598 . </P> <P> In early 1598 the king marched against Mercœur in person, and received his submission at Angers on 20 March 1598 . Mercœur subsequently went to exile in Hungary . Mercœur's daughter and heiress was married to the Duke of Vendôme, an illegitimate son of Henry IV . </P> <P> Henry IV was faced with the task of rebuilding a shattered and impoverished kingdom and uniting it under a single authority . Henry and his advisor, the Duke of Sully saw that the essential first step in this was negotiation of the Edict of Nantes--which, rather than being a sign of genuine toleration, was in fact a kind of grudging truce between the religions, with guarantees for both sides . The Edict can be said to mark the end of the Wars of Religion, though its apparent success was not assured at the time of its publication . Indeed, in January 1599, Henry had to visit the Parliament in person to have the Edict passed . Religious tensions continued to affect politics for many years to come, though never to the same degree, and Henry IV faced many attempts on his life; the last succeeding in May 1610 . </P> <P> Although the Edict of Nantes concluded the fighting during Henry IV's reign, the political freedoms it granted to the Huguenots (seen by detractors as "a state within the state") became an increasing source of trouble during the 17th century . The decision of King Louis XIII to reintroduce Catholicism in a portion of southwestern France prompted a Huguenot revolt . By the Peace of Montpellier in 1622, the fortified Protestant towns were reduced to two: La Rochelle and Montauban . Another war followed, which concluded with the Siege of La Rochelle, in which royal forces led by Cardinal Richelieu blockaded the city for fourteen months . Under the 1629 Peace of La Rochelle, the brevets of the Edict (sections of the treaty that dealt with military and pastoral clauses and were renewable by letters patent) were entirely withdrawn, though Protestants retained their prewar religious freedoms . </P>

What were the two major reasons for the growing discontent in france