On 3 June 2011, Taarabt decided to end his international career the day after being dropped to the bench for an Africa Cup of Nations qualifier against Algeria. He reneged on that decision, returning on 9 October 2011 for their last qualifier against Tanzania. Taarabt scored a free-kick that would end up being the winning goal and sealing Morocco's qualification. He made two substitute appearances in a group stage exit.