'home of the Naib') refers both literally and metaphorically to the office of the Naib (Arabic: نائب "deputy", plural Nawab) or representative of the Sultan of Morocco to the foreign communities in Tangier, under the Moroccan diplomatic arrangements in place from the 1840s to the Treaty of Fez that ended the country's sovereignty in 1912.
Dar Niaba also refers to a Portuguese-era urban mansion on the central rue Es-Siaghine in the medina of Tangier, one of the city's oldest buildings still standing.
[1] Under his successor Mohammed al-Khatib, the office of Dar Niaba moved to Tangier in 1851,[2]: 24 and became a full-time position in 1854.
The successive Naibs were:[3]: 272 [4][5] The building now known as Dar Niaba was first erected during the era of Portuguese Tangier, and its monumental stone portal is preserved from that period.
[9] In 1920, in application of the Treaty of Versailles, the former German legation building, outside the medina, was repurposed for use by the Naib.