President Trump on Thursday granted a pardon to boxing’s first black heavyweight champion, clearing Jack Johnson’s name more than 100 years after his racially-charged conviction for transporting a hooker he was dating across state lines.

“It’s my honor to do it. It’s about time,” Trump said during an Oval Office ceremony, where he was joined by boxer Lennox Lewis and “Rocky” actor Sylvester Stallone, who had told him about Johnson’s fate.

Trump said Johnson had served 10 months in prison for what many view as a racially-motivated injustice and described his decision as an effort “to correct a wrong in our history.”

“He represented something that was both very beautiful and very terrible at the same time,” Trump said.

Johnson was convicted in 1913 by an all-white jury for violating the Mann Act, which made it illegal to transport women across state lines for “immoral” purposes, for traveling with his white girlfriend, a prostitute.

Trump had said previously that Stallone had brought Johnson’s story to his attention in a phone call.

“His trials and tribulations were great, his life complex and controversial,” Trump tweeted in April.

“Others have looked at this over the years, most thought it would be done, but yes, I am considering a Full Pardon!”

Johnson was a legendary figure in boxing and crossed over into popular culture decades ago with biographies, dramas and documentaries following the civil rights era.

He died in 1946. His great-great niece has pressed Trump for a posthumous pardon, and Sen. John McCain (R-Ariz.) and former Senate Majority Leader Harry Reid have been pushing Johnson’s case for years.

The son of former slaves, Johnson defeated Tommy Burns for the heavyweight title in 1908 at a time when blacks and whites rarely entered the same ring.

He then mowed down a series of “great white hopes,” culminating in 1910 with the undefeated former champion, James J. Jeffries.

McCain had said that Johnson “was a boxing legend and pioneer whose career and reputation were ruined by a racially charged conviction more than a century ago.”

“Johnson’s imprisonment forced him into the shadows of bigotry and prejudice, and continues to stand as a stain on our national honor,” McCain said.

With the Associated Press