After the Great Balkan Crisis, Austro-Hungarian troops occupied Bosnia and Herzegovina in August 1878, and Austria-Hungary finally annexed Bosnia and Herzegovina in October 1908 as a joint holding company under the control of the Ministry of Finance, instead of linking it to Austria or Hungary. The occupation of Bosnia and Herzegovina was a step in response to Russian advances towards Bessarabia. Since Austria-Hungary was unable to mediate between the Ottoman and Russian empires over control of Serbia, Austria-Hungary declared its neutrality when the conflict between the empires escalated into war.  To counter Russian and French interests in Europe, an alliance with Germany was concluded in October 1879 and with Italy in May 1882. Britain has long been isolated as far as other European nations are concerned. Britain was driven by its interests to move towards international protectorar alliances. A number of efforts were made to find a Franco-German solution, but it ultimately had no effect. That was going to change when a certain Theophile Delcasse took control of France`s foreign policy. The theophile diplomacy, supported by the accession of francophile Edward VII to the British throne in 1901, finally paid off. Although Britain and France were on the brink of war due to the Fashoda incident in 1898, the matter was settled and the way was open to new agreements between the two powers. At the moment, there was no formal alliance or other, but the Cordial Agreement, a friendly agreement, was reached in 1904. The most problematic aspect of future alliances was now Russia. Colonial rivalries between Russia and Britain gave way to hostilities between Russia and Britain at the end of the 19th century.
The field of competition was Asia, Turkish affairs, Persia, Afghanistan, China and India. It was the first formal war camp in Europe, the second was the Triple Entente, an informal alliance founded in 1907. The treaty provided that Germany and Austria-Hungary would help Italy if it was attacked without provocation by France. In return, Italy would do the same for Germany, but for Austria-Hungary, it promised to remain neutral if Russia attacked. The treaty was renewed in 1887, Italy received an empty promise of support from Germany to Italian colonial ambitions in North Africa in exchange for Italy`s continued friendship. However, after Russia`s defeat in the Russo-Japanese War and, in particular, after sir Edward Grey`s influence at the British Foreign Office, Britain began to advocate a favourable settlement. This was finally achieved in the Anglo-Russian agreement of 1907. The agreement created the international group that opposes the Triple Alliance. Officially, the nations of France, Great Britain and Russia formed the Triple Agreement. Austria-Hungary and Germany were considered one of the most surprising alliances of their time, even though the two empires shared the German language and a similar culture, often divided. One of the most remarkable events this represents was the recent Austro-Prussian War. Austria`s Habsburg leaders believed that the promotion of nationalism that Germany preferred would destroy their multinational empire.