 In 1874, under the new Serrano government, he became captain general of Catalonia.In 1883, he was Minister of War in the Posada Herrera Government and also between 1892 and 1895 in the Sagasta Government.During the Second Melillan campaign, he became Captain-General and was also representative of Malaga in the Spanish Senate, a chamber of which he became the President between 1905 and 1907.