in September, since in 1911 Italy had occupied Ottoman possessions in Libya and the Dodecanese islands. To secure Italian neutrality, the Central Powers offered them the French protectorate of Tunisia, while in return for an immediate entry into the war, the Allies agreed to their demands for Austrian territory and sovereignty over the Dodecanese. Although they remained secret, these provisions were incorporated into the April 1915 Treaty of London; Italy joined the Triple Entente and on 23 May declared war on Austria-Hungary, followed by Germany fifteen months later. The pre-1914 Italian army was the weakest in Europe, short of officers, trained men, adequate transport and modern weapons; by April 1915, some of these deficiencies had been remedied but it was still unprepared for the major offensive required by the Treaty of London. The advantage of superior numbers was offset by the difficult terrain; much of the fighting took place at altitudes of over 3000 metres in the Alps and Dolomites, where trench lines had to be cut through rock and ice and keeping troops supplied was a major challenge. These issues were exacerbated by unimaginative strategies and tactics. Between 1915 and 1917, the Italian commander, Luigi Cadorna, undertook a series of frontal assaults along the Isonzo which made little progress and cost many lives; by the end of the war, total Italian combat deaths totalled around 548,000. In the spring of 1916, the Austro-Hungarians counterattacked in Asiago in the Strafexpedition, but made little progress and were pushed by the Italians back to the Tyrol. Although an Italian corps occupied southern Albania in May 1916, their main focus was the Isonzo front which after the capture of Gorizia in August 1916 remained static until October 1917. After a combined Austro-German force won a major victory at Caporetto, Cadorna was replaced by Armando Diaz who retreated more than before holding positions along the Piave River. A second Austrian offensive was repulsed in June 1918 and by October it was clear the Central Powers had lost the war. On 24 October, Diaz launched the Battle of Vittorio Veneto and initially met stubborn resistance, but with Austria-Hungary collapsing, Hungarian divisions in Italy now demanded they be sent home. When this was granted, many others followed and the Imperial army disintegrated, the Italians taking over 300,000 prisoners. On 3November, the Armistice of Villa Giusti ended hostilities between Austria-Hungary and Italy which occupied Trieste and areas