President-elect Donald Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate MORE has tapped K.T. McFarland to serve as his deputy national security adviser.

McFarland, a national security analyst for Fox News, has worked under three Republican administrations. Her contract with Fox was terminated in the wake of the appointment, a spokesperson confirmed.

Retired Lt. Gen. Michael Flynn, selected last week as Trump's national security adviser, confirmed her appointment on Twitter on Friday:

So proud & honored to have KT McFarland as part of our National Security team. She will help us #MAGA — General Flynn (@GenFlynn) November 25, 2016

ADVERTISEMENT

“I am proud that KT has once again decided to serve our country and join my national security team,” Trump said in a statement. “She has tremendous experience and innate talent that will complement the fantastic team we are assembling, which is crucial because nothing is more important than keeping our people safe.”

McFarland had previously offered to be a “foot solider” for Trump’s “revolution” after his victory this month, and her selection drew quick praise from conservatives on social media:

ADVERTISEMENT

In 2006, McFarland ran for Senate in an effort to oust Hillary Clinton Hillary Diane Rodham ClintonButtigieg stands in as Pence for Harris's debate practice Senate GOP sees early Supreme Court vote as political booster shot Poll: 51 percent of voters want to abolish the electoral college MORE, who was New York’s Democratic senator at the time. McFarland was defeated in the Republican primary by John Spencer, who ultimately lost to the former first lady.

In the statement sent out by Trump's transition team, McFarland said she is "honored and humbled" to join his White House.

“The American people chose Donald J. Trump to lead them for a reason. He has the courage, brilliance and energy to Make America Great Again, and nobody has called foreign policy right more than President-elect Trump, and he gets no credit for it,” McFarland said.

—Updated at 1:53 p.m.