After Carlist defeat in Catalonia in the summer 1875, Alfonso XII's Spanish governmental forces advanced to the north over the Basque Country, taking control of all Carlist areas by February 1876.
However, pragmatic considerations left the Spanish premier and new strongman Canovas del Castillo with no option but talks with the Basque Provinces (May 1876).