Jack Johnson in an undated photo (Library of Congress Prints and Photographs Division)

President Trump tweeted Saturday afternoon that he will consider a posthumous pardon for boxer Jack Johnson after a call from actor Sylvester Stallone, who according to Trump explained the fighter’s “complex and controversial” life.

Johnson, the first black heavyweight champion, was convicted in 1913 under the Mann Act, federal legislation that made it illegal to cross state lines with a woman “for the purpose of prostitution or debauchery, or for any other immoral purpose.” Jim Crow era prosecutors often used the legislation as a type of anti-miscegenation law.

Johnson was widely despised for flaunting his title, his wealth and his affection for white women. He was convicted by an all-white jury. Johnson spent seven years abroad as a fugitive before returning to the United States and turning himself in. He served about a year in federal prison.

Congressional leaders have sought a pardon for Johnson for years. A bill requesting a pardon from George W. Bush passed the House of Representatives in 2008 but died in the Senate.

A 1,000-page education bill in 2015 included a provision requesting a pardon for Johnson. It called the boxer a “flamboyant, defiant, and controversial figure in the history of the United States who challenged racial biases.”

Sen. John McCain (R-Ariz.) and former senator Harry M. Reid (D-Nev.), along with Congressmen Peter T. King (R-N.Y.) and Gregory W. Meeks (D-N.Y.), requested a pardon from President Obama in 2016.

John Arthur “Jack” Johnson, nicknamed the “Galveston Giant” in the ring, was born in 1878 southeast of Houston. By 1903, he became the unofficial “Negro heavyweight champion.” World heavyweight champion Jim Jeffries refused to fight him and instead retired. But in 1910, Johnson gained the championship belt, and Jeffries emerged from retirement to “reclaim the heavyweight championship for the white race.”

“Jeff, it’s up to you,” novelist Jack London wrote before the bout, according to NPR. “The White Man must be rescued.”

Instead, Johnson pummeled Jeffries for 15 rounds in “the battle of the century” and won the belt outright.

“I could never have whipped Johnson at my best,” Jeffries later said. “I couldn’t have hit him. No, I couldn’t have reached him in 1,000 years.”

The Mann Act was signed just weeks prior, though, and federal investigators almost immediately began looking into Johnson’s romantic life.

He married a white woman, Etta Terry Duryea, in 1911, but their relationship was rocky and she committed suicide a year later. Three months after that, he married Lucille Cameron, who was also white. Her mother was so disgusted with the relationship, she claimed Cameron had been kidnapped, but Cameron refused to cooperate with investigators.

But law enforcement agents found Belle Schreiber, a Chicago prostitute with whom Johnson had an affair years earlier. She agreed to testify against the boxer in 1913, and an all-white jury took less than two hours to convict him. He skipped bail after the trial and traveled Europe and South America with Cameron before surrendering to American agents at the Mexican border in 1920.

He served a one-year prison term in Leavenworth, Kan., and returned to find that society and the ring that wouldn’t accept him.

Before his incarceration, Johnson was known to prance around the ring with swagger. He owned a nightclub and wore gold teeth. He once reportedly purchased a pet leopard and took it for walks while sipping champagne.

But by 1921, he was past his prime, and boxing instituted a stricter color barrier. It would be another 16 years until Joe Louis defeated James Braddock in Chicago to win the world heavyweight title.

He fought, often for private audiences as celebrity appearances, until age 67 in 1945. He died a year later in a car wreck in North Carolina, speeding from a restaurant that refused him service.

More from The Post:

Brewer: Wizards channel their instinct for conflict to get back into series with Raptors

While Shaquem Griffin took on football with one hand, his twin brother always had his back

The top 50 prospects for the NFL draft and the key questions they face