In 1777, caid Tahar ben Abdelhak Fennish was sent by Mohammed ben Abdellah to negotiate a treaty with the French to free Moroccan captives. Years later he was asked by the Alaouite sultan to make the USA befriend the Kingdom.