The situation in Baltimore is getting so bad that rival gang members have decided to call a cease-fire and form an unlikely alliance against Baltimore cops in the wake of Freddie Gray’s death.

Police officials announced Monday they had received a “credible threat” that rival members of the murderous Bloods, Crips and Black Guerrilla Family street gangs “have entered into a partnership to take out law enforcement officers.”

Photos and videos on social media showed thugs decked out in their typical blue and red gang colors wreaking havoc in the streets while demanding “Justice for Freddie.” They kicked in car windows and destroyed other property.

One group photo shows several Crips gang members wearing blue bandannas over their faces posing next to red-clad Bloods members while flashing their respective gang signs.

Activists from the Nation of Islam claimed responsibility for the unholy alliance, praising the show of unity and telling reporters that they brokered a deal between the hated foes.

“I can say with honesty those brothers demonstrated they can be united for a common good,” Nation of Islam minister Carlos Muhammad told The Daily Beast.

“At the rally, they made the call that they must be united on that day. It should be commended.”

Muhammad went on to tell the website that “the Bloods and the Crips can help rebuild their community.”

The accord between the thugs was part of a massive demonstration that saw more that 1,200 people march on Baltimore City Hall over the weekend, calling for the officers involved in Gray’s death to face charges.

Baltimore police said 35 people were arrested during Saturday’s demonstration.

A funeral for Gray was held Monday at the New Shiloh Baptist Church, where thousands of mourners turned out to pay their respects.

Gray, 25, suffered a massive spinal injury April 12 when police apprehended him after he ran away when they ordered him to stop, officials said.

The badly injured man’s pleas for medical attention were ignored, and arresting officers said Gray was carrying a knife and was arrested without force or incident.

But medical experts said Gray’s injuries showed signs of “forceful trauma.”

It is still unclear how Gray’s injuries were sustained.

Baltimore police officials later admitted that officers made mistakes during the arrest of Gray, who died of his injuries on April 19.

The US Department of Justice has opened an investigation into his death.