From the 18th century, Tangier served as Morocco's diplomatic headquarters. The United States dedicated its first consulate in Tangier during the George Washington administration. In 1821, the Legation Building in Tangier became the first piece of property acquired abroad by the U.S. government—a gift to the U.S. from Sultan Moulay Suliman.