Sen. Dianne Feinstein met with the Iranian foreign minister for dinner even as the Trump administration sent an aircraft carrier strike group to the region to respond to the Islamic Republic’s threats against US forces in the Middle East.

Feinstein, who sits on the Senate Intelligence Committee, met with Javad Zarif a few weeks ago when he was in the US, Politico reported on Thursday.

The California Democrat said the dinner was “arranged in consultation with the State Department.”

​”​The office was in touch with State in advance of the meeting to let them know it was happening and to get an update on U.S.-Iran activity,” Feinstein’s office said.

​Zarif worked with former Secretary of State John Kerry on the 2015 nuclear deal brokered by the Obama administration with the country and other global powers — including ​Russia, France, England and China.

President Trump, who withdrew from the accord in May 2018, has accused Kerry of continuing to have conversations with Iran and said he should be prosecuted for violating the Logan Act.

Asked about Feinstein’s meeting with Zarif, Secretary of State Mike Pompeo blasted the senator and Kerry for engaging Iran.

​”These acts border — we all know the Logan Act — ​we all know the risks that is taken when people act as private citizens on behalf of the United States government,” Pompeo said during an interview on “Fox and Friends.”

​The Logan Act, which was enacted in 1799, forbids private citizens from communicating with a foreign government having a dispute with the US.

No one has ever been prosecuted under it.

The Trump administration, responding to Iranian threats against US forces in the Middle East, deployed the USS Abraham Lincoln aircraft carrier strike group and B-52 bombers to the region earlier this month.

Pentagon officials are expected to brief members of the administration’s national security team Thursday on plans to send 10,000 troops to the Middle East to counter the threats, the Associated Press reported.