 German expansionism had prompted Britain and France to come to the "Entente Cordiale", putting aside their traditional rivalry to oppose Germany.The agreement directly affected Spain, since it settled matters of control over Morocco and placed Tangier under joint British–French–Spanish control.The agreement had the effect of bringing Spain closer with Britain and France, leading to an exchange of notes between the three governments in May 1907 that underlined an informal mutual defense agreement.