great powers, in this case, between Germany on one side and France, with British support, on the other. Germany took immediate diplomatic action to block the new accord from going into effect, including the dramatic visit of Wilhelm II to Tangier in Morocco on 31 March 1905. Kaiser Wilhelm tried to get Morocco's support if they went to war with France or Britain, and gave a speech expressing support for Moroccan independence, which amounted to a provocative challenge to French influence in Morocco. In 1906 the Algeciras Conference was held to settle the dispute, and Germany accepted an agreement in which France agreed to yield control of the Moroccan police, but otherwise retained effective control of Moroccan political and financial affairs. Although the Algeciras Conference temporarily solved the First Moroccan Crisis it only worsened international tensions between the Triple Alliance and the Triple Entente. French invasion The French military conquest of Morocco began in the aftermath of Émile Mauchamp's assassination in Marrakesh on 19 March 1907. In the French press, his death was characterized as an "unprovoked and indefensible attack from the barbarous natives of Morocco." Hubert Lyautey seized his death as a pretext to invade Oujda from the east. In the summer of 1907, tribes of the Chaouia led a revolt against the application of terms in the 1906 Treaty of Algeciras in Casablanca, killing 9 European laborers working on the rail line between the port and a quarry in Roches Noires. The French responded with a naval bombardment of Casablanca from 5–7 August, and went on to occupy and "pacify" Casablanca and the Chaouia plain, marking the beginning of the French invasion from the west. Hafidiya Abdelaziz did virtually nothing in response to French aggressions and occupation of Oujda and the Chaouia. As a result, there was growing pressure jihad in defense of Morocco, particularly from Muhammad al-Kattani and the people of Fes. After the southern aristocrats pledged support to the sultan's brother, Abd al-Hafid, the people of Fes also pledged their support, though qualified by an unprecedented Conditional Bay'ah. France supported Abdelaziz and promoted him in their propaganda newspaper Es-Saada (). Agadir Crisis In 1911, a rebellion broke out in Morocco against the Sultan, Abdelhafid. By early April 1911, the Sultan was besieged in his palace in Fez and the French prepared to send troops to help put down the rebellion under the pretext of protecting European