It has a rich history linked to Tangier's past role as diplomatic capital of the Sultanate of Morocco from the late 18th to the 20th centuries.
[2] In 1816, the consulate moved into an existing building on Rue Es-Siaghine, between the Medina's gate of Bab el-Fahs and the Petit Socco square, with a portal dating back to era of Portuguese Tangier.
[7] France acquired the vacant former Danish property, a few blocks norths from rue es-Siaghine, and moved its own legation there in 1849,[3]: 350 while selling its previous building to the Moroccan state that made it the residence of the Naib or representative of the Sultan to the foreign communities in Tangier, thus subsequently known as Dar Niaba.
That new building, still standing but altered since then, had been designed by architect Paul Guadet[3]: 411 for local businessman Haim Benchimol,[8] who had been an interpreter for the French legation in the past.
After the establishment of the Tangier International Zone in 1923, the French government decided to build more imposing premises, next to a villa it had purchased years before that served as the consul's private residence.