A judge ordered Crawl singer Chris Brown back to rehab after being diagnosed with bipolar disorder.

He's set to spend the next two months in the Malibu rehabilitation center where he was getting treatment since November after he threw a rock through his mother's car window. The order was made on Friday.

New York Daily News obtained a letter the rehab center submitted to the court that also had Brown's probation report attached.

It reads, "Our clinical team believes Mr. Brown became aggressive and acted out physically due to untreated mental health disorder, severe sleep deprivation, inappropriate self-medicating and PTSD."

Documents also state that Brown suffers from severe insomnia.

Brown is scheduled to stay in rehab until the end of April, until his trial in Washington, D.C. for allegedly assaulting of a 20-year-old student ends. He also has to fulfill 750 hours of community service from is 2009 assault incident with his ex-girlfriend, Diamonds singer Rihanna.

He hasn't spoken out directly about his rehab treatment but he did tweet Friday, "Never really goes the way u plan. #LIFE"

Rumor has it that Brown has also rekindled his romance with Rihanna and dumped his girlfriend, Karrueche Tran, who was with him during his 90-day stay in rehab. The two have been allegedly texting each other but sources have denied those claims as well.

One told Hollywood Life, "There's no communication between them whatsoever. This is what makes him made the most, people always trying to connect him to her with some bull. It's over, just like the Laker's 2013 season, he and Rihanna's relationship is over. Done."