the moroccan–american treaty of friendship was a treaty between morocco and the united states. it was signed in 1786. by signing it, king mohammed iii began diplomatic relations with the newly independent united states.