The war effort had taken a heavy toll on Basque economy and regional public finances with a population shaken by a myriad of war related plights—human losses, poverty, disease—and tired with Carlos' own absolutist ambitions and disregard for their self-government. The moderate Jose Antonio Muñagorri negotiated as of 1838 a treaty in Madrid to put an end to war ("Peace and Fueros") leading to the Embrace of Bergara (also Vergara), ratified by Basque moderate liberals and disaffected Carlists across all the main cities and countryside.