This event is known as the First Moroccan Crisis. The crisis arose when Germany challenged France's influence over Morocco. The German Emperor, Kaiser Wilhelm II, visited Tangier, Morocco, and made a public statement supporting Moroccan independence, which threatened French influence in the region. Germany's challenge to French power in Morocco led to an international conference in Algeciras, Spain, in 1906. At the conference, France's position in Morocco was confirmed, but Germany was given some economic concessions in the country. The crisis worsened relations between Germany and France and drove Britain and France closer together, leading to the signing of the Entente Cordiale in 1907.