In July, Bonaparte detached Dallemagne's brigade from Jean Serurier's division and sent it to reinforce Masséna. He led his soldiers with distinction at the Battle of Lonato. On 31 July, his troops helped recover Lonato from Peter Ott's Austrians. On 3 August, Ott repulsed his attack on Gavardo but this action allowed Masséna to mass against and destroy Joseph Ocskay's brigade. Two days later, Dallemagne fought at the Battle of Castiglione. He received promotion to general of division on 15 August.