to take responsibility for Alfonso's education with the goal of shaping him into the ideal king for the planned Bourbon Restoration, and next sent him to the Royal Military College, Sandhurst, in England. The training he received there was severe but more cosmopolitan than it would have been in Spain, given its atmosphere at the time. On 1 December 1874, Alfonso issued the Sandhurst Manifesto, where he set the ideological basis of the Bourbon Restoration. It was drafted in reply to a birthday greeting from his followers, a manifesto proclaiming himself the sole representative of the Spanish monarchy. At the end of 1874, Brigadier Martínez Campos, who had long been working more or less openly for the king, led some battalions of the central army to Sagunto, rallied the troops sent against him to his own flag, and entered Valencia in the king's name. Thereupon the President resigned, and his power was transferred to the king's plenipotentiary and adviser, Cánovas. The 29 December 1874 military coup of Gen. Martínez Campos in Sagunto ended the failed republic and meant the rise of the young Prince Alfonso. Reign Within a few days after Cánovas del Castillo took power as Premier, the new king, proclaimed on 29 December 1874, arrived at Madrid, passing through Barcelona and Valencia and was acclaimed everywhere (1875). In 1876, a vigorous campaign against the Carlists, in which the young king took part, resulted in the defeat of Don Carlos and the Duke's abandonment of the struggle. Initially led by Cánovas del Castillo as moderate prime minister, what was thought at one time as a coup aimed at placing the military in the political-administrative positions of power, in reality ushered in a civilian regime that lasted until Primo de Rivera's 1923 coup d'état. Cánovas was the real architect of the new regime of the Restoration. In order to eliminate one of the problems of the reign of Isabel II, the single party and its destabilizing consequences, the Liberal Party was allowed to incorporate and participate in national politics, and the 'turnismo' or alternation was to become the new system. Turnismo would be endorsed in the Constitution of 1876 and the Pact of El Pardo (1885). It meant that liberal and conservative prime ministers would succeed each other ending thus the troubles. This led to the end of the Carlist revolts and the victory over the New York-backed Cuban revolutionaries,