A 65-year-old Moroccan citizen was sentenced to 12 years in prison on Tuesday after being convicted by a Portuguese court of recruiting young people to fight in Syria.
Abdesselam Tazi was also found guilty by the court in Lisbon of financing the recruitment using forged credit cards.
Portugal's public prosecutor said Tazi was an intelligent man who recruited the people, mostly from Morocco, to travel to Portugal and then join ISIS in Syria.
The court, which found him guilty of seven crimes, found no evidence that Tazi was a member of the extremist organisation.
"The sentencing caught me by surprise," Tazi's lawyer Lopes Guerreiro said. He said he planned to appeal against the court's decision.
"The individual was absolved of belonging to an international terrorist organisation but he was condemned for having recruited people for an organisation he is not part of," Mr Guerreiro said.
Trials of this kind are unusual in Portugal and the Justice Minister has said the number of Portuguese citizens who joined ISIS or similar groups is "not significant".
Portugal has never had an extremist attack on its territory.