Italy declared war on Austria in alliance with Prussia in 1866 and received the region of Veneto following their victory. Italian troops entered Rome in 1870, thereby ending more than one thousand years of Papal temporal power. Italy entered into a Triple Alliance with the German Empire and the Austro-Hungarian Empire in 1882, following strong disagreements with France about the respective colonial expansions. However, even if relations with Berlin became very friendly, the alliance with Vienna remained purely formal as the Italians were keen to acquire Trentino and Trieste, corners of Austria-Hungary populated by Italians. So during World War I, Italy accepted the British invitation to join the Allied Powers, as the western powers promised territorial compensation (at the expense of Austria-Hungary) for participation that was more generous than Vienna's offer in exchange for Italian neutrality. Victory in the war gave Italy a permanent seat in the Council of the League of Nations.