Jamie Dimon apologized Wednesday for joking that JPMorgan Chase & Co. would outlast China’s Communist Party.

Mr. Dimon said on Wednesday morning that he regretted remarks he made Tuesday during an event at Boston College, in response to an audience question about doing business in China.

“I was just in Hong Kong and I made a joke that the...

Jamie Dimon apologized Wednesday for joking that JPMorgan Chase & Co. would outlast China’s Communist Party.

Mr. Dimon said on Wednesday morning that he regretted remarks he made Tuesday during an event at Boston College, in response to an audience question about doing business in China.

“I was just in Hong Kong and I made a joke that the Communist Party is celebrating its hundredth year. So is JPMorgan. I’d make you a bet we last longer,” Mr. Dimon said Tuesday, according to a video recording viewed by The Wall Street Journal.

“I can’t say that in China. They probably are listening anyway,” the 65-year-old chief executive added, while laughing.

On Wednesday, Mr. Dimon said, “I regret and should not have made that comment. I was trying to emphasize the strength and longevity of our company.”

In a second statement later in the day, Mr. Dimon added, “I regret my recent comment because it’s never right to joke about or denigrate any group of people, whether it’s a country, its leadership, or any part of a society and culture.”

On Wednesday afternoon in Beijing, Zhao Lijian, an official from China’s Ministry of Foreign Affairs, sidestepped a question about Mr. Dimon’s remarks during a daily press conference and dismissed media reports on it as attempts to draw eyeballs.

‘I was just in Hong Kong and I made a joke that the Communist Party is celebrating its hundredth year. So is JPMorgan. I’d make you a bet we last longer.’

— Jamie Dimon

Mr. Dimon’s reversal came days after he made a whirlwind trip to the Chinese financial hub of Hong Kong on a government travel exemption.

JPMorgan has been trying to gain a deeper foothold in the world’s second-largest economy. The bank was the first among its Wall Street peers to get Chinese regulators’ nod to take full control of securities and futures businesses in the country. It is seeking 100% ownership in an asset-management joint venture, which if approved would make JPMorgan the first foreign bank to have a full suite of wholly owned units in China covering key financial business lines.

J.P. Morgan Asset Management also struck a deal in March to buy 10% of China Merchants Bank Co. ’s lucrative wealth-management unit.

Last week, the China Securities Regulatory Commission provided feedback on JPMorgan’s application to take full control of its onshore asset-management business and posed 11 additional questions on the transaction, according to a statement on the commission’s website.

They included queries about how JPMorgan plans to manage cross-border data flows after gaining full control of the entity and what justifies the high price the American bank is paying for the stake.

The securities regulator also asked JPMorgan to correct a discrepancy between the Chinese and English versions of the bank’s filing about the planned deal in different currencies, its statement said. JPMorgan is paying up to $1 billion for the 49% stake, according to the regulator.

Last week Mr. Dimon traveled to Hong Kong, where the New York-based bank has a sizable presence and around 4,000 employees. It was his first trip to the city since the beginning of the coronavirus pandemic, and the CEO skipped a three-week hotel quarantine that most arrivals from the U.S. have to complete. After his 32-hour visit stirred controversy, Hong Kong Chief Executive Carrie Lam defended the government’s decision to grant Mr. Dimon an exemption.

The U.S. wants to counter China’s influence around the world by providing everything from infrastructure to vaccines and green energy. WSJ’s Stu Woo explains how the plan, dubbed Build Back Better World, aims to compete with China’s Belt and Road Initiative. Photo composite: Daniel Orton The Wall Street Journal Interactive Edition

In Boston on Tuesday, Mr. Dimon said in response to a question about tensions between China and Taiwan that any action against the self-ruling island could become akin to the U.S.’s costly and deadly conflict with Vietnam.

“They are very smart people. Hopefully that will not become an issue,” he said.

The New York-born executive also reserved a punchline for his own country. “They look at us now as kind of the incompetent nation,” Mr. Dimon said, referring to China’s view of the U.S. “America can’t get out of its own underwear,” he added, citing the Jan. 6 attack on the Capitol as an example.

Mr. Dimon also made reference to former President Donald Trump. “I detest a lot of things Trump said,” he said after saying that he felt Mr. Trump was right about China, given problems in areas such as intellectual property and bilateral investment rights.

“He got the support of the business community because it was time to do something about it,” he said. “But what we need is a very detailed strategic economic dialogue including trade and all those other things, away from foreign policy.”

“The other thing is, JPMorgan can’t go to a country and go in and out every time we like or don’t like something the government is doing,” Mr. Dimon said. “Hell, I’d leave America, wouldn’t I?”

Write to Elaine Yu at elaine.yu@wsj.com and Jing Yang at Jing.Yang@wsj.com