 On March 13, 1817, Bernardo O'Higgins, at the request of San Martín, asked Beruti to return to the city of Mendoza and arranged his passport with governor Luzuriaga.He was able to return to Buenos Aires on November 17.He later became a member of the Unitarian Party and participated in the civil war against the Federalists.