Chris Brown Suffers From Bipolar Disorder And PTSD, Rehab Facility Reveals

New revelations on the singer's mental health were made in a court hearing on Friday.

Ever since his assault on Rihanna in 2009, Chris Brown has been known for his rather violent run-ins with the law -- including an alleged assault on a man in D.C., a now-infamous bottle brawl with Drake, and, most recently, throwing a brick threw his mother's car window while in rehab.

And according to the Los Angeles Superior Court documents, it's all because the singer suffers from bipolar disorder and post-traumatic stress disorder (PTSD).

The singer was in court on Friday (February 28) for a progress hearing in his 2009 assault case after he was sentenced to 90 days in rehab in November. In court documents obtained by E! News, the rehab facilities attributed Brown's "mood swings" to PTSD and bipolar disorder.

"Mr. Brown will also require close supervision by his treating physician in order to ensure his bipolar mental health condition remains stable. It is not uncommon for patients with Post Traumatic Stress Disorder and Bipolar II to use substances to self-medicate their biomedical mood swings and trauma triggers," a letter from the facility read. "Mr. Brown became aggressive and acted out physically due to his untreated mental health disorder, severe sleep deprivation, inappropriate self-medicating and untreated PTSD."

According to the documents, Superior Court Judge James R. Brandlin said "It is evident that [Brown] has responded well to the dual diagnosis treatment." Representatives from the rehab facility added that he has been "beyond exemplary" in fulfilling his community service requirements.

"Never really goes the way u plan. #LIFE," Brown tweetedon Friday afternoon.

Aside from his legal troubles, Brown will drop his long-awaited X album this year, along with his Fan of a Fan 2 mixtape with Tyga.