The Austrians had been driven from Lombardy, but the army of General Giulay remained in the region of Venice. His army had been reinforced and numbered 130,000 men, roughly the same as the French and Piedmontese, though the Austrians were superior in artillery. On 24 June, the second and decisive battle was fought at Solferino. This battle was even longer and bloodier than Magenta. In confused and often ill-directed fighting, there were approximately forty thousand casualties, including 11,500 French. Napoleon III was horrified by the thousands of dead and wounded on the battlefield. He proposed an armistice to the Austrians, which was accepted on 8 July. A formal treaty ending the war was signed on 11 July 1859.