In 1839, facing the French encroachment in Algeria, Moroccan Sultan Abderahman offered a powerful symbol of support to Emir Abdelkader: an imperial Caftan.
On the 10th of September, 1844 Morocco was forced to recognize Algeria as part of the French empire through the signing of the Tangiers treaty. The latter emerged after the Kingdom was defeated in its first Franco-Moroccan war.