As soon as Amadeus reached Madrid, after the death of Prim, Serrano consented to form a coalition cabinet, which lasted only a few months. Serrano resigned and took the command of the Italian king's army against the Carlists in northern Spain. He tried to form one more cabinet under King Amadeus as the 65th Prime Minister of Spain on 6 June 1872, but resigned on 12 June when that monarch declined to give his ministers dictatorial powers and sent for Ruíz Zorilla. His mistakes led to Amadeus abdicating the throne on 11 February 1873.