A Moroccan international for nine years, he represented his nation at the 2004 and 2008 Africa Cup of Nations.