In an undated photo, Tommy Thompson sorts through gold he found at the bottom of the Atlantic Ocean in the wreckage of the SS Central America, which sank in a hurricane off the coast of South Carolina in 1857.AP

A treasure hunter locked in a legal battle over one of the greatest undersea hauls in American history was arrested in Florida after more than two years on the lam, authorities said Wednesday.

The U.S. Marshals Service tracked Tommy Thompson to a Hilton hotel in West Boca Raton and arrested him Tuesday, said Brian Babtist, a senior inspector in the agency’s office in Columbus, Ohio, where a federal civil arrest warrant was issued for him in 2012 for failing to show up to a key court hearing.

Authorities didn’t immediately explain how they were finally able to track down Thompson, whom they called “one of the most intelligent fugitives ever sought by the U.S. Marshals.”

Gold bars recovered from the SS Central America are displayed at a coin collection expo in Long Beach, California, in 2010.AP

Thompson made history in 1988 when he found the sunken S.S. Central America, also known as the Ship of Gold. In what was a technological feat at the time, Thompson and his crew brought up thousands of gold bars and coins from the shipwreck.

Much of that was later sold to a gold marketing group in 2000 for about $50 million.

The 161 investors who paid Thompson $12.7 million to find the ship never saw returns from the sale. Two of them sued — a now-deceased investment firm president and the Dispatch Printing Company, which publishes The Columbus Dispatch newspaper and had invested about $1 million.

Thompson and his crew found the sunken SS Central America, know as the Ship of Gold, in 1988.AP

That legal battle is ongoing, and those close to Thompson say it was his undoing.

Gil Kirk, who heads a Columbus real estate firm and is a former director of one of Thompson’s companies, told The Associated Press last year that Thompson never cheated anyone. Kirk said proceeds from the 2000 sale of the gold all went to legal fees and bank loans.

“He was a genius, and they’ve stolen his life,” Kirk said of those who sued.

Thompson went into seclusion in 2006, moving into a mansion called Gracewood in Vero Beach, Florida. Six years later, after the arrest warrant was issued, Thompson vanished.

When the property’s caretakers searched the mansion, they found prepaid disposable cellphones and bank wraps for $10,000 scattered about, along with a bank statement in the name of Harvey Thompson showing a $1 million balance, court records said. Harvey, according to friends, was Thompson’s nickname in college.

Also found was a book called “How to Live Your Life Invisible.” One marked page was titled: “Live your life on a cash-only basis.”

Columbus attorney Rick Robol, who at one time defended Thompson’s company, has said there’s no proof Thompson stole anything. He said he’s been concerned about Thompson’s health, which is why he called the arrest “the best thing that can happen for everybody.”

The US Marshals Service tracked Tommy Thompson to a hotel in Palm Beach County and arrested him Tuesday.AP

Babtist said Thompson was arrested along with his longtime companion, Alison Antekeier, and the couple had been staying in a two-person suite at the Hilton for two years.

The hotel is in an upscale suburban area surrounded by golf courses, country clubs and gated communities. It’s less than 10 miles from the beach, and it has a pool and a running track.

The Marshals Service said Thompson Antekeier had no vehicles registered in their names and that Antekeier used public buses and taxis to move around Palm Beach County.

“The couple offered no resistance at the time of the arrest and readily admitted to being the targets of the extensive investigation,” the Marshals Service said in a news release.

Thompson was set for an initial appearance in federal court Thursday in West Palm Beach, while Antekeier was scheduled for an extradition hearing Feb. 4. It’s unclear whether she was ordered to remain in custody until the hearing.

No criminal charges have been filed against Thompson, but Babtist said the treasure hunter will likely be ordered held in custody until he appears before an Ohio judge to give an accounting for the gold’s sale and his actions.

“I don’t imagine he’s going to get any bond because he’s already been a fugitive and knowingly evaded law enforcement,” Babtist said. “I don’t know what kind of means he has as far as money goes, but I’m sure they don’t want to take any chances with him leaving the country or absconding again.”

In one of the worst shipping disasters in American history, the S.S. Central America sank in a monster hurricane about 200 miles off the South Carolina coast in September 1857; 425 people drowned and thousands of pounds of California gold were lost, contributing to an economic panic.