US President Donald Trump will intervene in A$AP Rocky's legal drama.

A$AP Rocky

A$AP Rocky

The rapper has been locked up in a cell in Stockholm, Sweden, since July 3 when he was arrested on suspicion of assault following a street fight between him, his entourage and another man.

And Rocky's close pal Kanye West has asked Trump to speak to the Swedish Prime Minister to try to resolve the case.

Trump tweeted: "Just spoke to @KanyeWest about his friend A$AP Rocky's incarceration. I will be calling the very talented Prime Minister of Sweden to see what we can do about helping A$AP Rocky. So many people would like to see this quickly resolved!"

While Rocky's friend Justin Bieber is happy that Trump is intervening, he called the president out on Twitter for his immigration policies, which have seen a number of children being detained at the border.

Bieber tweeted: "I want my friend out.. I appreciate you trying to help him. But while your at it @realDonaldTrump can you also let those kids out of cages? (sic)"

Just before his arrest, A$AP, 30, shared footage of the brawl on his Instagram account, which showed him attempting to break up the fight.

He accompanied the footage with the caption: "SO A FEW DRUG ADDICTS ARE NOT MY FANS , WE DONT KNOW THESE GUYS AND WE DIDNT WANT TROUBLE , THEY FOLLOWED US FOR 4 BLOCKS , AND THEY WERE SLAPPING GIRLS BUTTS WHO PASSED , GIVE ME A BREAK (sic)"

The video showed A$AP stay calm throughout the row as he told one of the men to calm down after he slapped his security guard over the head with headphones.

He said: "We don't want to fight y'all, we not trying to go to jail."

When the man asked for the headphones back, the rap star said: "I understand but you hit him with it."

He then said directly to the camera: "Just for the cameras, we don't want no problems with these boys, they keep following us."