President Trump lashed out at one of his favorite American manufacturers on Tuesday, criticizing Harley-Davidson over its plans to move some of its motorcycle production abroad and threatening it with punitive taxes in return.

In a series of tweets on Tuesday, the president accused the Wisconsin-based company of having “surrendered” in Mr. Trump’s trade war with Europe. He told Republican lawmakers at a White House meeting that the move amounted to a betrayal, saying, “I’ve been very good to Harley-Davidson.”

“If they move, watch, it will be the beginning of the end — they surrendered, they quit!” the president wrote on Twitter. “The Aura will be gone and they will be taxed like never before!”

A day earlier, Harley-Davidson announced that it would shift some of its production overseas in response to the European Union’s new 31 percent tariff on its imported bikes, which was imposed in retaliation for Mr. Trump’s steel and aluminum tariffs.