In 1916 he was promoted to lieutenant. He was involved in the suppression of anti-war riots in Turin in the summer of 1917. Following the Italian loss at the Battle of Caporetto in November 1917, he returned to the front with the 6th Monte Pasubio Battalion of the Alpini and participated in the Battle of Monte Grappa against the Central Powers.
In 1939 he signed the Convention of friendship and good neighborliness with the king of Italy, Victor Emmanuel III, which remains in force to the present day.[1] On 17 September 1942, four years after the Italians had enacted the Italian racial laws of 1938, Gozi issued racial law n.33, which prohibited marriage between Sammarinese and foreigners or Jews; marriages with non-Jewish Italians were still permitted.[2][3]
A previous Giuliano Gozi was also Captain Regent of San Marino for 9 terms between 1768 and 1796.