map of Tangier in 1901, showing the walled
Medina and multiple foreign consulates and legations For nearly a century after the end of
English rule in 1684, Tangier was primarily a military town, the main fortified outpost on the Moroccan Sultanate's side of the
Strait of Gibraltar. This role evolved after Sultan
Mohammed ben Abdallah designated it in 1777 as the main point of contact between the Moroccan monarchy and European commercial interests, leading to the gradual relocation of a number of consulates to the city by the main European nations. Great Britain, an ally of the Sultanate since 1713 as it needed Moroccan help to provision
Gibraltar, moved its consul from
Tétouan to Tangier in the 1770s, By 1830, Denmark, France, Portugal,
Sardinia, Spain, Sweden,
Tuscany, the United Kingdom, and the United States all had consulates in Tangier. In 1851, the sultan appointed a permanent representative to the foreign powers in Tangier, the
Naib, and in 1856, all remaining consulates were elevated to
legations. Since the Moroccan legal regime applied
Islamic law only to
Muslims and
Judaic law only to
Jews, foreign representatives were kept under a derogatory legal status defined by successive bilateral agreements with the
Makhzen, the oldest of which appears to have been concluded with the
Republic of Pisa in 1358. Such bilateral arrangements, known as
capitulations, were signed with France in 1767, the
United Kingdom in 1856, and Spain in 1861 in the wake of the
Treaty of Wad Ras. In 1863, France and Morocco signed the so-called Béclard Convention which expanded the
protégé system to France's benefit, which in 1880 was extended to other nations by the
Treaty of Madrid. Under the capitulations' legal protection the United Kingdom established a postal service in Tangier in 1857, followed by France in 1860, Spain in 1861, and Germany in 1899; the Moroccan Sultanate followed suit with its own service in 1902. The foreign powers in Tangier soon started developing joint projects, starting with matters of
quarantine and public health as early as 1792. In 1840, a
Dahir (decree) of Sultan
Abd al-Rahman mandated them to establish a Sanitary Council (), chaired by the envoys of the represented nations on a rotating basis in the name of the
Makhzen. In the early 1860s, the foreign nations for the creation of the
Cape Spartel , inaugurated in 1864. In 1879, a Dahir of Sultan
Hassan I created Tangier's Hygiene Commission (), which coexisted with the Sanitary Council and gradually took shape in the 1880s as a
de facto municipal council, with members appointed by the foreign diplomats but also the Sultan and prominent local residents. The Hygiene Commission was chaired by the foreign envoys, on three-months turns with succession based on alphabetical order of nationality. Its leading executive was the vice chair, a position held for most of the decade from 1888 to 1898 by Spanish physician . In 1887, Greek-American community leader
Ion Hanford Perdicaris advocated a special status for Tangier as a neutral
free port under the
great powers' joint control. In 1892, the Hygiene Commission took over some of the tasks of the Sanitary Council (which nevertheless continued to exist in parallel), and was given legal form on 23 December 1893, with its role broadened and its name extended to road works () with authority to raise levies. In 1904, Tangier was chosen as location of the French-led
Moroccan Debt Administration. That same year, a secret treaty between France and Spain acknowledged Tangier's special status and thus marked the first official prefiguration of later formal international arrangements. The
Algeciras Conference of 1906 established the
State Bank of Morocco in Tangier, and also created new bodies for the city's management such as an Office of Public Works that in 1909 took over part of the services that had been managed by the Hygiene Commission. The Act of Algeciras also resulted in the creation of a dual police force under foreign control, the
Tabor divided between French and Spanish components, respectively in charge of public order outside and inside the city limits. In March 1912, the
Treaty of Fes established the
French protectorate in Morocco and raised again the status of Tangier. Both France and Spain wanted to control the city, while the United Kingdom wanted to neutralise it to maintain its dominance of the
Strait of Gibraltar. Later that year, Article 7 of the
Treaty Between France and Spain Regarding Morocco stipulated that Tangier would be granted a special status and defined its geographical boundaries. A technical committee of France, Spain and the UK met in Madrid in 1913, but only reached agreement in November 1914, after
World War I had started, which allowed Spain, which was unsatisfied with the outcome, to suspend its implementation for several years. Meanwhile, Tangier still operated under an
ad hoc governance regime with a Sultan-appointed governor, the Naib reduced to a largely ceremonial role since Morocco under the protectorates no longer had an autonomous foreign policy, the extraterritorial courts under the respective foreign delegations (downgraded back to
consulate status for the same reason), the Sanitary Council, the Hygiene Commission, the French and Spanish
Tabors, and assorted specialized committees. File:Morocco Tangier Former English Consulate.jpg|Former British legation in the Medina of Tangier File:Morocco Tangier Former French Consulate.jpg|Former
French legation until the mid-19th century, later
Dar Niaba File:Morocco Tangier Former Spanish Consulate.jpg|Former Spanish legation, erected in 1786; later Spanish post office|alt=Former Spanish legation, erected in 1786;: 340 later Spanish post office: 15 File:Museo del Antiguo Legado Estadounidense, Tánger, Marruecos, 2015-12-11, DD 44-46 HDR.JPG|Former
U.S. legation File:Morocco Tangier Mendoubia.jpg|Former German legation just outside the Medina, later
Mendoubia File:Morocco Tangier Former Portuguese Consulate.jpg|Former Portuguese legation in the Medina of Tangier File:Morocco Tangier Former Danish Consulate.jpg|Former Danish legation in the Medina of Tangier File:Tangier Austrian Consulate.jpg|Former legation of Austria-Hungary ==History==