At the outbreak of the third Italian war of independence the command covered the right flank of the main army and remained static along the river Po. The command under General Enrico Cialdini consisted of the 11th, 12th, 13th, 14th, 15th, 17th, 18th and 20th division of the line. However, when the main Italian army failed to break through the Austrian Quadrilatero fortress system south of Lake Garda the V Army Corps marched six divisions over the Apennine mountains, joined up with the IV Army Corps in the Romagna and crossed the lower Po and Adige rivers in force on 15 July 1866. Cialdini bypassed the Austrian fortresses and main army on his left flank and marched his army all through the Veneto, dispatching one division under Giacomo Medici to invade Trentino and cut the Austrian line of retreat and three divisions under Raffaele Cadorna to march at speed to the city of Trieste. Cialdinis army finally reached the Isonzo river on 24 July 1866.