 The sole duty of the guard is to provide for the security and safety of the King and royal family of Morocco.The Royal Guard traces its origins to the prestigious Black Guard that was created in 1088 by the Almoravid ruler Yusuf ibn Tashfin as his personal guard.This recruitment tradition was continued by the Almohads through the 15th century.