The Anglo-Moroccan alliance was established at the end of the 16th century and the early 17th century between the kingdoms of England and Morocco. Commercial agreements had been reached by Queen Elizabeth I of England and the Moroccan leader Ahmad al-Mansur on the basis of a mutual enmity to the Spanish King Philip II. The arms trade dominated the exchange, and numerous attempts at direct military collaboration were also made.
The alliance was maintained for some time by their successors.
The alliance between the two states developed during the 16th century on the back of regular commercial exchanges, largely thanks to the work of the Amphlett family of merchants. European trade with Morocco had been at the command of Spain, Portugal and Genoa, but in 1541 the Portuguese suffered the loss of Safi and Agadir, loosening their grip on the area.
Following the sailing of The Lion of Thomas Wyndham in 1551, and the 1585 establishment of the English Barbary Company, trade developed between England and the Barbary states, and especially Morocco.
Sugar, ostrich feathers and saltpeter from Morocco were typically exchanged for English fabrics and firearms, in spite of the protests of Spain and Portugal.
Elizabeth I had numerous exchanges with Sultan Abd al-Malik to facilitate trade and obtain advantages for English traders. The sultan could speak Spanish and Italian as well as Arabic. In 1577 he wrote to the queen in Spanish, signing himself AbdelMeleck in Latin script. That same year, the queen sent Edmund Hogan as ambassador to the Moroccan court.