The brother of two British teenagers who were killed while fighting in Syria was stabbed to death in Brighton in a row over drugs, jurors were told.
Abdul Deghayes was stabbed eight times by a dealer, Hove Crown Court heard.
Daniel Macleod, 36, of Lambeth, London, denies murder, and Stephen Burns, 55, of Brighton, denies assisting him.
Jurors heard Mr Deghayes managed to leave the scene in Hanover Court with his friend Colby Broderick but collapsed in a car which then crashed.
The court heard the 22-year-old bled to death before paramedics could save him.
Opening the case, prosecutor, Adam Feest QC said Mr Deghayes had telephoned a drug dealer known to him as "Frank" to buy some drugs.
"Frank, the Crown say, came to the scene with another, but Frank got out of the car which he arrived in alone to meet with Mr Deghayes," he said.
The prosecutor said "Frank" was an alias of Mr Macleod and it was he who killed Mr Deghayes.
He said Mr Macleod had been identified by Mr Broderick, who was in the car that Mr Deghayes was in.
"It is the Crown's case that Abdul Deghayes was killed by the first defendant [Macleod], stabbing him a number of times in what may have been a short attack, but a vicious attack nonetheless," Mr Feest said.
Jurors heard Mr Macleod, of Gypsy Road, was transported around Brighton that night by Mr Burns, of Lennox Street, who used different vehicles and later took him back to Crawley, Sussex.
The court was told Mr Macleod, Mr Burns and another man, were involved in a "significant drug dealing operation" and drugs, money and other paraphernalia were found at addresses linked to the trio.
Mr Feest said the motive may never be known, but may relate to an allegation that Mr Deghayes had robbed Mr Burns of drugs, adding: "It may well be that the stabbing was in some form revenge for that perceived slight."
The court heard post-mortem results were "entirely consistent" with the account of the attack given by Mr Deghayes's friend Mr Broderick.
Mr Feest said Mr Deghayes had nine wounds; one to his back, five to his lower left leg, one to his right leg and one to his left hand, and a cut to his left wrist, all "consistent with the use of a bladed weapon such as a knife".
He told jurors two wounds to Mr Deghayes's left leg were in the buttock area, which might be consistent with a drug-dealing practice used to "humiliate victims".
Two of Mr Deghayes's brothers, Abdullah, 18 and Jaffar, 17, died fighting in Syria. They are survived by a fourth brother, Amer, who also travelled to the Middle East.
The trial continues.