One of the motivating factors of the agreement was undoubtedly France`s desire to protect itself from a possible aggression by its former rival, Germany, which had gradually strengthened in the years since its victory in the Franco-German War of 1870-71 and which now had the most powerful ground army in the world. Britain also sought to contain Germany, particularly in the face of a revised and ambitious German naval programme which, if successful, threatened to call into question Britain`s clear dominance at sea. The German government, seeking this agreement, decided to test its borders by sending Emperor William II to Morocco in March 1905 to explain his support for the sultan, an obvious challenge for France`s influence in this country sanctioned by the Cordial Agreement. This attempt to undermine the Anglo-French alliance failed, with Britain sided with France; An international conference convened the following year in Algeciras, Spain, also recognized France`s claims in the region. The conflict between Germany and the new allies was known as the first Moroccan crisis – a second occurred in the summer of 1911, when France and Germany sent troops to Morocco – and led to a hardening and consolidation of the Cordial Agreement, because Britain and France, to deal with German aggression , moved from simple friendship to an informal military alliance and then moved on to talks and an agreement with Russia, an ally of France. In 1912, two powerful and hostile blocs formed in Europe, with France, Britain and Russia on the one hand, and an increasingly isolated Germany – with relatively lukewarm support from Austria-Hungary and Italy – on the other. Two years later, this unstable situation would withdraw from the First World War. Thanks to the Cordial Agreement, Great Britain and France gave the beginnings of an alliance and, in the concluding terms of the agreement, promised to help each other in obtaining the implementation of the clauses of this declaration on Egypt and Morocco. The agreement was, however, terminated shortly thereafter by the commitment of the two nations to support each other militarily; this aspect of the alliance would come later. The Cordial Agreement of April 1904, which officially carries a declaration between the United Kingdom and France on respect between Egypt and Morocco, was more than anything a declaration of friendship between these two great European powers. On its terms, France promised not to question British control of Egypt; For its part, Britain has recognized French law as a power whose reigns are linked to a great distance from those of Morocco, to act in that country to maintain order and to help carry out all the reforms it deems necessary in the government, economy or army.