 This accusation led to a long court-martial which finally acquitted him and he remained in the army.In November 1814, when the civil war between Federales and Unitarians had started, he was named governor of Entre Ríos Province.The following year he took part in the revolution against Supreme Director Carlos María de Alvear, and later he was sent to Santa Fe Province to control the advance of the federalists.