Morocco has been seeking to position itself as a middleman between Europe and the Sahel states.