Hunter Biden, the son of Democratic presidential hopeful Joe Biden, is stepping down from the board of a Chinese-backed private equity firm following blistering attacks from President Trump.

A letter released Sunday by his lawyer George Mesires said Hunter will also vow not to serve on the boards of foreign-owned companies if his father is elected president.

“Under a Biden Administration, Hunter will readily comply with any and all guidelines or standards a President Biden may issue to address purported conflicts of interest, or the appearance of such conflicts, including any restrictions related to overseas business interests,” Mesires said in the statement.

“In any event, Hunter will agree not to serve on boards of, or work on behalf of, foreign owned companies.”

Hunter Biden will resign from BHR Equity Investment Fund Management Co. by Oct. 31.

Trump has raised questions about Hunter Biden’s work in China and his involvement in Burisma Holdings, a Ukrainian natural gas company, while his father was vice president.

Trump, in a campaign rally in Minnesota on Thursday, called out Hunter Biden’s credentials once again.

“Hunter, you know nothing about energy. You know nothing about China. You know nothing about anything, frankly,” the president said to cheers from the crowd. “Hunter, you’re a loser.”

Trump and his personal lawyer Rudy Giuliani have claimed that Hunter Biden was paid millions by China while his father served in the Obama administration, and the president urged China and Ukraine to investigate the Bidens.

Mesires said the younger Biden took the positions because he always “understood that his father would be guided, entirely and unequivocally, by established US policy, irrespective of its effects on Hunter’s professional interests.”

“This was the standard observed throughout Hunter’s professional career. When Hunter engaged in his business pursuits, he believed that he was acting appropriately and in good faith. He never anticipated the barrage of false charges against both him and his father by the president of the United States,” Mesires continued.

House Speaker Nancy Pelosi launched an impeachment inquiry against Trump after a whistleblower’s complaint revealed the president pressed Ukrainian leader Volodymyr Zelensky to investigate the Bidens.

Hunter Biden served on the Burisma board for five years, before stepping down in April 2019.

Trump and Republican lawmakers allege that Joe Biden threatened to withhold $1 billion in guaranteed loans to Ukraine unless it fired top prosecutor Viktor Shokin, who had investigated Burisma’s owner.

Ukrainian prosecutors said there is no evidence the Bidens did anything wrong.