 Following several incidents 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, 1844), 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-El-Kader, 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.