After appearing in the Morocco U23 side, Dirar earned his first cap for the Morocco in the 2010 FIFA World Cup qualification match against Mauritania on 11 October 2008. His international career was in doubt after being left out of the squad. He later revealed that he did not get on with then Morocco Manager Roger Lemerre, saying Lemerre treated him like a dog. Following Lemerre's sacking, Dirar was welcomed back to the national team. In February 2012, he was called up by Manager Eric Gerets for the Africa Cup of Nations but declined the offer, believing that Gerets would not be needing him for the national team squad.