Kid Cudi is taking a break from the spotlight to focus on himself. The “Pursuit of Happiness” rapper broke the news on Tuesday, revealing the heartbreaking reason for his time out.

In a message posted to his Facebook page Cudi — born Scott Mescudi — announced that he had decided to check himself into rehab. The Cleveland native claimed he has “been living a lie” for some time, telling fans that he was “ashamed” to have been hiding his battle with anxiety and depression.

With his dark secret out in the open, the musician promised to get better “for myself, my family, my best friend/daughter, and all of you.” Cudi, 32, remains hopeful that he will be out by Complexcon on Nov. 5, adding that he was looking forward to seeing his supportive fans. He apologized to anyone he may have disappointed, though judging from the response to his message those people are few and far between.

“I am not at peace. I haven’t been since you’ve known me. If I didn’t come here, I would’ve done something to myself. I simply am a damaged human swimming in a pool of emotions everyday of my life,” he wrote. “Theres a ragin [SIC] violent storm inside of my heart at all times. Idk what peace feels like. Idk how to relax. My anxiety and depression have rule my life for as long as I can remember and I never leave the house because of it.”

Cudi touched on his forthcoming album, “Passion, Pain & Demon Slayin’,” which was originally expected to be made available for purchase in September. In his Facebook post, Cudi stated that his management team would continue promoting the project during his absence. The album is thought to be releasing this month, though an exact date has yet to be made public. Cudi previously teased details from “Passion, Pain & Demon Slayin’,” including a track list, which featured a whole host of guest artists and more than 15 songs. Among those joining Cudi on the album are Willow Smith, Travis Scott, Pharrell Williams and Andre 3000.

Before announcing his retreat to rehab, Cudi found himself at the center of a brief feud with Kanye West following comments he made about the “Famous” rapper and Drake. In a lengthy rant on Twitter on Sept. 13, he proclaimed himself a “threat” to their success, insinuating that they and other artists had counted him out. Cudi bashed unnamed artists for “having 30 people write songs for them,” adding that the “fake ones” reign would soon be over. West, 38, was the only one to respond to Cudi’s rant, stating that he “birthed” his career during a Sept. 14 show in Tampa, Florida.

Kid Cudi Kid Cudi, photographed at the Tribeca Film Festival in New York City on April 18, 2016, has checked himself into rehab citing “suicidal urges.” Photo: Getty Images