On 17 August, the British Consul William Willshire was evacuated in exchange for the Moroccan prisoners that were wounded (the French Consul had already left a month before).
The British Consul and his family were immediately transferred to the ship Warspite, which had been accompanying the French fleet.

On the same day, the Véloce was dispatched to Maréchal Bugeaud with the healthy Moroccan prisoners, as well as with the flags taken to the Moroccans, which were deposited with great ceremony at the Invalides on 2 September 1844.

The war was formally ended September 10, 1844, 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 French forces evacuated Mogador on September 16, 1844.

The border, which is essentially the modern border between Morocco and Algeria, was agreed in the Treaty of Lalla Maghnia.

Following the signature of the treaty, on 4 July 1845, the Véloce brought back the 123 Moroccan prisoners, and remitted them.

The conflict increased tensions between France and the United Kingdom, which were considered by some to be on the brink of war.
On 17 August, the British Consul William Willshire was evacuated in exchange for the Moroccan prisoners that were wounded (the French Consul had already left a month before). The British Consul and his family were immediately transferred to the ship Warspite, which had been accompanying the French fleet.
On the same day, the Véloce was dispatched to Maréchal Bugeaud with the healthy Moroccan prisoners, as well as with the flags taken to the Moroccans, which were deposited with great ceremony at the Invalides on 2 September 1844.
The war was formally ended September 10, 1844, 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 French forces evacuated Mogador on September 16, 1844.
The border, which is essentially the modern border between Morocco and Algeria, was agreed in the Treaty of Lalla Maghnia.
Following the signature of the treaty, on 4 July 1845, the Véloce brought back the 123 Moroccan prisoners, and remitted them.
The conflict increased tensions between France and the United Kingdom, which were considered by some to be on the brink of war.
Bombardment of Mogador