Attempts by the Basque deputies in Paris to create a Basque department failed, their districts merged with Béarn among protests of the Basque representatives, and even Soule was divided into two cantons. After the end of the First Carlist War in Spain and the relocation of customs to the Pyrenees from the Ebro (1841), trade with Navarre collapsed. In the late 19th century, the establishment of espadrille factories in Mauleón made up for the decay of economic life and emigration, with a number of inhabitants in Navarre and Aragón pouring in and being recruited on the workforce.