A Lebanese man admitted joining Islamic State in Syria and later returning to his home country Germany to buy military and medical supplies for the group, at the opening of his trial in Stuttgart on Wednesday.

Ismail Issa told the court he had taken up Islam to escape drug addiction and had been persuaded to take part in the rebellion against Syrian President Bashar Assad while he was on a pilgrimage to Mecca in 2013.

"What I've done is absolutely disgusting. I want to settle my debt as soon as possible," the 24-year-old added.