After Napoleon's abdication, Bava returned to Piedmont, where king Victor Emmanuel I integrated his troops into the Piedmontese army as the Cacciatori piemontesi battalion.
During the First Italian War of Independence, General Bava commanded one of the two corps of the Piedmonese-Sardinian army under Charles Albert, as the latter launched an offensive against Austria in Lombardy.
Despite the success of the Five Days of Milan, the Piedmontese army did not attack the retreating Austrian forces at their most vulnerable point and only followed them up to the Mincio river.
When Josef Radetzky launched an offensive, defeating the Tuscan division at Curtatone and Montanara, Bava managed to halt his advance with a victory at Goito.
This led to the King and the government to agree on Bava's dismissal, and on 16 February 1849, he was formally removed from his position, and replaced by Chrzanowski (albeit ambiguously as Charles Albert's chief of staff).