He has been a member of the Iranian squad for the 2010 FIFA World Cup qualifying matches and the 2014 FIFA World Cup qualifying matches. He served as the captain of Team Melli during the West Asian Football Federation Championship 2008 and won the Cup. Aghily also played in the 2011 AFC Asian Cup qualification for Team Melli. He was one of the main players of Team Melli in West Asian Football Federation Championship 2010 and 2011 Asian Cup.