After the victory at the Battle of Chacabuco (February 12, 1817). General San Martín named Guido as Lieutenant Colonel, but he continued doing the job of Chief Secretary of the Army and Navy. During the ceremony to mark the official declaration of Chilean independence on February 12, 1818, Guido played the role of flagbearer.