French foreign policy in the years leading up to the First World War was based largely on hostility to and fear of German power. France secured an alliance with the Russian Empire in 1894 after diplomatic talks between Germany and Russia had failed to produce any working agreement. The Franco-Russian Alliance served as the cornerstone of French foreign policy until 1917. A further link with Russia was provided by vast French investments and loans before 1914. In 1904, French foreign minister Théophile Delcassé negotiated the "Entente Cordiale" with Lord Lansdowne, the British Foreign Secretary, an agreement that ended a long period of Anglo-French tensions and hostility. The "Entente Cordiale", which functioned as an informal Anglo-French alliance, was further strengthened by the First and Second Moroccan crises of 1905 and 1911, and by secret military and naval staff talks. Delcassé's rapprochement with Britain was controversial in France as Anglophobia was prominent around the start of the 20th century, sentiments that had been much reinforced by the Fashoda Incident of 1898, in which Britain and France had almost gone to war, and by the Boer War, in which French public opinion was very much on the side of Britain's enemies. Ultimately, the fear of German power was the link that bound Britain and France together.