 After the tumult of the First Spanish Republic, Spaniards were willing to accept a return to stability under Bourbon rule.The Republican armies in Spain – which were resisting a Carlist insurrection – pronounced their allegiance to Alfonso in the winter of 1874–75, led by Brigadier General Martínez-Campos.The Republic was dissolved and Antonio Cánovas del Castillo, a trusted advisor to the king, was named Prime Minister on New Year's Eve, 1874.