December 1777: Morocco became the first country to recognize the United States.
In December 1777, while the American Revolution still hung in the balance — Saratoga just won, the winter of Valley Forge ahead — a Sultan in Marrakech did what no king in Europe dared: he recognized the independence of the United States. Morocco was the first country in the world to do so, and the gesture inaugurated the longest unbroken treaty relationship in American history.
Sultan Mohammed III — Sidi Mohammed ben Abdallah (r. 1757–1790) — was the Alaouite reformer who rebuilt Morocco after the long wars of Moulay Ismail: he founded Essaouira as a modern Atlantic port, reorganized the customs, tamed the corsairs into a regulated navy, and opened the kingdom to European trade on Moroccan terms. In 1777 he issued a declaration opening Moroccan ports to American shipping and ordering his corsairs and port officials to treat American vessels as those of a friendly power. The news reached Paris and Philadelphia: an African Sultan had recognized the American republic while Louis XVI still hesitated.
The motives were Moroccan statecraft at its finest. American merchantmen and privateers, cut off from British protection, needed safe harbors in the Atlantic; Morocco's ports — Tangier, Salé, Essaouira — could provide them, for a price in customs duties and diplomatic leverage. But there was also genuine vision: Mohammed III understood that a new power was rising in the Atlantic, and that the first friend of a rising power is never forgotten. The Americans never forgot: the 1777 recognition is taught in American schools as the first recognition of their independence by any foreign power.
The formal treaty followed in 1786 — the Treaty of Peace and Friendship, negotiated with the involvement of John Adams and Thomas Jefferson, twenty-five articles protecting American ships and sailors, establishing consular relations. Renewed in 1836, it has never lapsed: the longest continuously operating treaty in the history of the United States, older than the Constitution. Its Article 6 is still cited in American jurisprudence; its promise — that shipwrecked American sailors would be protected — was tested in the nineteenth century and honored.
The relationship built on 1777 runs unbroken to the present: the American Legation in Tangier (1821), the oldest American diplomatic property in the world, now a museum; the landing of American troops in Morocco in 1942 — Operation Torch, the first American campaign of World War II — launched from Moroccan soil with the Sultan's cooperation; the 2004 free-trade agreement, America's only FTA in Africa; the strategic partnership, the military exercises, the shared Atlantic horizon.
For Morocco, 1777 is the supreme exhibit of its diplomatic tradition: the small kingdom that saw the future first, that treated with a revolution as a sovereign equal, and that has kept the friendship for two hundred and fifty years. When American presidents speak of Morocco as America's "oldest friend," they are quoting history — and the history began in December 1777, in Marrakech.
The 1942 landing gives the old friendship its modern blood-seal: Operation Torch — 35,000 American troops landing at Fedala (Mohammedia), Safi, and Mehdia on 8 November 1942 — was launched with Sultan Mohammed V's quiet cooperation, the Sultan refusing Vichy French demands to resist and later hosting Roosevelt at the Casablanca Conference (January 1943), where the Allied doctrine of "unconditional surrender" was proclaimed from Moroccan soil. The Sultan's 1943 meeting with Roosevelt — the American president promising support for Moroccan aspirations — is remembered in Morocco as the moment the 1777 friendship became a modern alliance. The Tangier Legation's own history mirrors the relationship: seized by the United States in 1821, it served through the Barbary era, the world wars, and the Cold War, and in 1976 became a museum — the only American National Historic Landmark on foreign soil. Two hundred and fifty years, one unbroken thread: from a Sultan's declaration in 1777 to the free-trade agreement of 2004, no American friendship is older, and few have been so little broken.
The 1777 recognition made Morocco the first nation in the world to recognize American independence — a gesture that inaugurated the longest unbroken treaty relationship in US history (the 1786 Treaty of Peace and Friendship, negotiated with Adams and Jefferson, still in force). The Tangier Legation (1821) is America's oldest diplomatic property; Operation Torch (1942) launched from Moroccan soil; the 2004 FTA is America's only free-trade agreement in Africa. For Morocco, 1777 is the founding act of its modern diplomacy: the kingdom that saw the future first.