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.