During closing arguments on Friday, a prosecutor argued that Rocky, a 30-year-old rap star from New York whose real name is Rakim Mayers, should be found guilty of assault and sentenced to six months in jail, saying the rapper had no justification for attacking a man who had been following him on a Stockholm street in June.

“I don’t think anything other than jail is possible,” said the prosecutor, Daniel Suneson.

On Thursday, Rocky told the court that he acted in self-defense when he threw, punched and kicked Mustafa Jafari, 19. He, along with Mr. Corniel and Mr. Rispers, who also were captured on video participating in the fight, said they had used reasonable force against Mr. Jafari, who had been refusing their entreaties to leave them alone.

Rocky could have called the police, Mr. Suneson said, noting that he was also accompanied by a bodyguard at the time. “They have used more violence than what was required to defend themselves,” Mr. Suneson said. “It was excessive.”

Slobodan Jovicic, Rocky’s lawyer, also took a firm line in his summation. “My client should be found not guilty and freed today,” he said.

Mr. Jafari had tried to hit Rocky’s bodyguard and had thrown a pair of headphones at him before Rocky struck him, Mr. Jovicic said .

Before the closing arguments on Friday, the court heard from several witnesses. One supported Rocky’s account of the incident, while others contradicted it.