A$AP Rocky testified Thursday at his assault trial in Sweden that he begged his alleged victim to leave him alone and did everything possible to avoid a confrontation with the two men he said were following him and his entourage.

Rocky, whose real name is Rakim Mayers, is accused along with two other men believed to be members of his entourage of beating 19-year-old Mustafa Jafari in Stockholm on June 30.

The rapper, 30, pleaded not guilty at the start of the trial Tuesday, saying he acted in self-defense.

In an emotional plea, Rocky told the judge that he had spent a month in Sweden and had visited multiple times.

'This is my 5th or 6th time here. I have seen the most beautiful architecture. And the not-so-nice things ... what I want is justice. I want my name to be cleared. Justice for all of us,' he said, according to TMZ.

Rocky said Jafari and his friend refused to leave the entourage alone despite several appeals, and claimed the two appeared to be under the influence of drugs.

'Me and my crew told them that, "Listen, don’t go where we are going. Go the other way, we don’t want any trouble,"' Rocky told the Stockholm District Court.

'I assumed that these guys were under the influence of some kind of drug,' Rocky told the court.

Scroll down for video

A$AP Rocky (pictured in February 2019) testified Thursday at his assault trial in Sweden that he begged his alleged victim to leave him alone. He also demanded that his name be cleared so that 'justice' can be served

In an emotional plea, Rocky (court sketch, Rocky pictured in green) told the judge: 'This is my 5th or 6th time here. I have seen the most beautiful architecture. And the not-so-nice things ... what I want is justice. I want my name to be cleared. Justice for all of us'

He said the situation became tense after Jafari got into an argument with one of Rocky's bodyguards near a fast-food restaurant where the rapper’s entourage had stopped to download an app to use electric scooters, which are widely available in Stockholm.

They were downloading the app when he said Jafari and 20-year-old Dawod Hosseini approached.

'After a while, my security guard started pushing him away, begging him to leave,' Rocky, who appeared in court wearing an all-green inmate uniform, said.

He testified that he and his entourage just wanted to 'de-escalate' the situation.

Rocky said the fight left him 'shocked and scared', and that he decided to intervene by pushing Jafari to the floor and either kicking or punching him, Sweden's Expressen newspaper reported.

The rapper and his friends are each facing two years in jail

Speaking in court, Rocky described how he had left his hotel with his assistant to go see some architecture when the incident took place.

Renee Black, the rapper's mother, was also in court for the second day of the trial having visited her son for the first time in jail this week

Slobodan Jovicic (pictured), the lawyer representing Rocky, is seen during a news conference in Stockholm on Thursday

Black made her way past a gang of reporters outside the court Thursday, where cross-examination of both Rocky and his accuser will take place

Rocky said that at first he wasn't fully aware of what was going on, because his bodyguard was dealing with them, but said the pair were told to leave multiple times but kept coming back.

The security guard then lifted one of the men up and walked him away, but after he came back again, the group decided to walk away.

Rocky said: 'He [Jafari] was persistent, he kept coming after us, and kept going ”come on, come on”.

'We attempted to walk away and when we walked away we were followed. We begged them not to follow us.

'At this moment, both of the guys attacked [the security guard]. That's when I stepped in and threw him on the ground and kicked his arm. I punched him or shoved him.'

Rocky admitted that he and his friends picked up bottles during the fight, but denied that they were used as weapons.

He told the court that the group only picked them up 'for a moment' to stop them getting into the hands of Jafari and Hosseini before putting them down.

Rocky also said in court that he thought about reporting the assault himself and hoped the police would show up, but didn't want to draw attention to it.

A$AP Rocky might have to wait until Monday to find out the verdict The judge overseeing A$AP Rocky's trial has warned the rapper that he may have to spend another weekend in jail before he can find out his verdict. It comes after cross-examination of accuse Mustafa Jafari took longer than expected on Thursday morning. As a result, the court schedule is running behind, meaning it might not be possible to deliver the verdict on Friday as expected. If that happens then Rocky might have to stay in jail until Monday to find out whether he is a free man or not. Advertisement

After the attack was over, Rocky said he immediately returned to his hotel.

He also described how a previous robbery at his home, an incident in which he was stabbed, and a previous occasion when he and his bodyguard were 'attacked by addicts' have left him fearful of being approached.

Earlier in the day, Jafari gave his account of events, in which he claimed that Rocky 'smashed me over the head with a bottle, and then he ran away'.

The Afghan migrant spoke through an interpreter to insist that he had no idea Rocky was famous and only approached him to ask where his friend, Hosseini, had gone.

CCTV from outside a fast food restaurant shows Jafari approach Rocky while Hosseni was only a few steps away.

Rocky's lawyers then grilled Jafari, questioning whether he was sober on the day in question after he claimed to be unable to remember portions of what happened.

He also refused to answer questions about his criminal history, which includes convictions for drugs and theft.

Much of the trial has centered around analyzing videos and whether bottles had been used as weapons during the alleged assault.

Rocky's lawyers are expected to rely heavily on the videos, claiming they have new evidence which will show all violence was within the limits of the law.

Robert C. OBrien, the US Special Presidential Envoy for Hostage Affairs, attends court after being sent by President Donald Trump, who has been agitating for Rocky's release

Two of Rocky's friends are also on trial accused of assault. Pictured are parents of one of the co-accused attending the trial Thursday

Journalists outside the district court in Stockholm, during the second day of ASAP Rocky's trial

Trump has taken up Mayers's cause after a meeting with Kim Kardashian, and has since hit out at the Swedish Prime Minister on Twitter

The videos include one published by US celebrity news outlet TMZ, where the rapper can be seen throwing a young man to the ground and apparently aiming several punches at him while he is down.

But prosecutors showed a text message from Rocky's assistant that reads: 'I hope Rocky deleted all the videos on his phone and kept only the one.'

According to TMZ, prosecutors believe that Rocky hit the alleged victim with a bottle, recorded the attack and then deleted it.

Prosecutors also questioned other text messages, which included one that said: 'Harlem came out and smashed a bottle on a person.'

The name Harlem is believed to be in reference to Rocky. Authorities are now trying to zero on the rapper's phone for more information.

The court was also shown videos posted to the artist's own Instagram, purporting to show the lead up to the brawl, which the prosecution argued had been heavily edited.

Rocky's lawyer Slobodan Jovicic argued that the rapper's actions were the result of the plaintiff and his friend showing 'a threatening, aggressive and deeply provoking behavior'.

Rocky was charged last Thursday with assault in Sweden, despite Trump's personal plea to the Swedish Prime Minster requesting the rapper be released. Pictured: Video grabs of the fight, posted by the Grammy-nominated star

A video of last month's street brawl appeared to show the US rapper and his security team hurling a man to the ground and punching and kicking him (video footage pictured)

Jafari (left and right) showed police the extent of his injuries from the alleged assault, in which he sustained cuts to his arms legs and face

Swedish Police shared this photo which shows an injury sustained by Jafari, the alleged victim involved in a fight with rapper Rocky

'He admits that he threw the plaintiff on the ground, that he stepped on his arm and punched or pushed his shoulder,' Jovicic told the court, saying it was a case of 'self-defense'.

The trial is scheduled to conclude with closing arguments on Friday.

After the trial has ended the court will announce when it will be able to render a verdict and also decide whether the accused should be kept in custody in the meantime.

Rocky was remanded in custody while the case was being investigated as he was considered a 'flight risk'.

Fans, fellow artists and US Congress members have been campaigning for his release.

An online petition called #JusticeForRocky has garnered more than 640,000 signatures. Social media campaigns have urged fans to boycott Swedish brands such as IKEA.

President Donald Trump has repeatedly called for the rapper to be freed, drawing complaints of interference from Swedish politicians.

Robert C. O'Brien, US Special Presidential Envoy for Hostage Affairs, had been sent to attend the trial.

'The president asked me to come here and support these American citizens and we're working to bring them back as soon as possible,' O'Brien said.