An ex-British soldier has appeared in court charged with attending a place used for terrorist training.
It is alleged that on or before February 15 2016, James Matthews attended a place or places in Iraq and Syria where instruction or training was provided for purposes connected to the commission or preparation of terrorism.
The camps are thought to have been run by Kurdish militia.
The 43-year-old appeared at Westminster Magistrates' Court on Wednesday and indicated a not guilty plea.
It is believed this is the first time that terrorism legislation has been used to prosecute someone who is assisting a group who are also being assisted by the UK government.
Represented by Joel Bennathan QC, Matthews, wearing black jeans and a brown leather jacket, spoke only to confirm his identity.
Matthews, from Dalston, east London, is due to next appear at the Old Bailey on March 1.
As he arrived at court he warmly greeted supporters, who then filled the public gallery for the hearing.
Speaking after the hearing, 39-year-old June Ayteen from London, who knows James personally, said: "It is very unprincipled of the British government to be taking this stance. It is unjust."
Another supporter, Red Rosa, 30, also from London, said: "I am here to support James because I think it is really inspirational when people put their life on the line to fight for this common struggle, which is really an international struggle.
"He has left his comfort in London to fight for his principles and fight for freedom."
Salar Hamarash, 55, added: "I just came to support James. He is a decent person who helped fight on the side of the underdog.
"I am very surprised to hear the British government are allowing families of known Isis fighters back into the UK and not prosecuting them, but then put someone like James on trial."