Moulay Ismail ibn Sharif (Arabic: مولاي إسماعيل بن الشريف ابن النصر), born around 1645 in Sijilmassa and died on 22 March 1727 at Meknes, was an Arab Sultan of Morocco from 1672–1727, as the second ruler of the Alaouite dynasty.His 55-year reign is the longest of any sultan of Morocco.The reign of Moulay Ismail marked a high watermark for Moroccan power. His military successes are explained by the creation of a strong army, originally relying on the 'Guichs' (especially the Udaya) and on the Black Guard (or Abid al-Bukhari), black slaves who were totally devoted to him.Moulay Ismail successfully campaigned against and expelled the Europeans from the ports they had occupied: Larache, Asilah, Mehdya, and Tangiers. He established significant diplomatic relations with foreign powers, especially the Kingdom of France, Great Britain, and Spain. Often compared to his contemporary, Louis XIV, due to his charisma and authority, Moulay Ismail was nicknamed the 'bloody king' by the Europeans.