Predominantly Shiite Muslim Iran will combat terrorism by Sunni extremists in neighbouring Iraq, President Hassan Rouhani warned Thursday.