DMX attends the 2009 VH1 Hip Hop Honors on September 23, 2009 in New York City.
CNN  — 

DMX was released from a federal prison Friday, a spokesperson for the Federal Bureau of Prisons confirmed to CNN.

The rapper was released from Gilmer Federal Correctional Institution in Glenville, West Virginia, the spokesperson said.

DMX was arrested in 2017 after federal prosecutors in New York say he concocted a multi-year scheme to hide millions in income from the IRS and skirt $1.7 million in existing tax liabilities.

“While raking in millions from his songs, including his 2003 hit ‘X Gon’ Give it to Ya,’ DMX didn’t give any of it to the IRS,” Acting U.S. Attorney Joon H. Kim said in a statement at the time.

Rapper DMX arrested for tax evasion

DMX attends the 2009 VH1 Hip Hop Honors on September 23, 2009 in the Brooklyn borough of New York City
Rapper DMX found unconscious in hotel
01:13 - Source: WABC

It was just the latest legal issue for the rapper, who has had frequent run-ins with the law since he first made his debut in 1998 with the album “It’s Dark and Hell Is Hot.”

He has been arrested before on multiple charges, including drug possession and animal cruelty, and in 2010 was sentenced to a year in prison for violating terms of his probation.

CNN’s Julia Horowitz contributed to this report.