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 Sultan Ahmad al-Mansur on the basis of a common enmity to Philip II of Spain. 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.