After intervening in the war in Morocco, he returns to Madrid and had an argument with Nicolás María Rivero that would end in a duel.
This circumstance did not favor him at all as he ended up being exiled to the Canary Islands, where they also sent General Francisco Serrano and others.
With the Duke de la Torre and other generals exiled to the Canary Islands, he returned to the peninsula in September 1868 to join the Glorious Revolution against Isabel II.
He traveled to Cuba together with the new mayor, José Emilio de Santos, with the mandate to pacify the island and end corruption in the administration, but it only took him a year to return to Spain.
[1] In 1873 he participated in the Third Carlist War on April 23 together with Generals Serrano and Topete[2] in order to prevent the proclamation of the federal Republic, the failure of the movement led him to flee in disguise but was captured in Torrelodones, although thanks to a safe-conduct from Estanislao Figueras he was released.