After a delegation from the Dutch Republic visited Morocco to discuss a common alliance against Spain and the Barbary pirates, sultan Zidan Abu Maali in 1608 appointed the merchant Samuel Pallache to be his envoy to the Dutch government in The Hague. Officially, Pallache served as his "agent", not ambassador.