France again showed a strong interest in Morocco in the 1830s, as a possible extension of her sphere of influence in the Maghreb, after Algeria and Tunisia. The First Franco-Moroccan War took place in 1844, as a consequence of Morocco's alliance with Algeria's Abd-El-Kader against France. Following several incident at the border between Algeria and Morocco, and the refusal of Morocco to abandon its support to Algeria, France faced Morocco victoriously in the Bombardment of Tangiers (August 6, 1884), the Battle of Isly (August 14, 1844), and the Bombardment of Mogador (August 15–17, 1844). The war was formally ended September 10 with the signing of the Treaty of Tangiers, in which Morocco agreed to arrest and outlaw Abd al-Qādir, reduce the size of its garrison at Oujda, and establish a commission to demarcate the border. The border, which is essentially the modern border between Morocco and Algeria, was agreed in the Treaty of Lalla Maghnia.