LAGUNA NIGUEL, CA - OCTOBER 02:  Megyn Kelly speaks onstage at the Fortune Most Powerful Women Summit 2018 at Ritz Carlton Hotel on October 2, 2018 in Laguna Niguel, California.  (Photo by Phillip Faraone/Getty Images for Fortune)
Phillip Faraone/Getty Images for Fortune
LAGUNA NIGUEL, CA - OCTOBER 02: Megyn Kelly speaks onstage at the Fortune Most Powerful Women Summit 2018 at Ritz Carlton Hotel on October 2, 2018 in Laguna Niguel, California. (Photo by Phillip Faraone/Getty Images for Fortune)
Now playing
04:29
Was Megyn Kelly always doomed at NBC?
John Avlon 0413 Wallace
CNN
John Avlon 0413 Wallace
Now playing
03:31
Avlon compares Tucker Carlson's comments to George Wallace
Fox News/Twitter
Now playing
01:33
ADL wants Fox News to fire Tucker Carlson over racist comments
Now playing
01:54
'You think I'm racist': Former Fox News host storms off camera
CNN
Now playing
03:37
'The fraud is this farce': Cuomo calls out Fox News host
CNN
Now playing
05:00
Watch Alisyn Camerota sign-off CNN's New Day
Camerota Berman both
CNN
Camerota Berman both
Now playing
02:33
CNN anchor Alisyn Camerota gets surprise tribute from co-anchor
CNN/HBO/"Q: Into the Storm"
Now playing
05:35
Filmmaker says he potentially uncovered man behind QAnon
BOSTON, MA - AUGUST 30:  Anti-vaccine activists hold up signs during a protest in front of the Massachusetts State House against Governor Charlie Baker's mandate that all Massachusetts school students enrolled in child care, pre-school, K-12, and post-secondary institutions must receive the flu vaccine this year on August 30, 2020 in Boston, Massachusetts.  (Photo by Scott Eisen/Getty Images)
Scott Eisen/Getty Images
BOSTON, MA - AUGUST 30: Anti-vaccine activists hold up signs during a protest in front of the Massachusetts State House against Governor Charlie Baker's mandate that all Massachusetts school students enrolled in child care, pre-school, K-12, and post-secondary institutions must receive the flu vaccine this year on August 30, 2020 in Boston, Massachusetts. (Photo by Scott Eisen/Getty Images)
Now playing
03:06
Research exec: Far-right groups pushing vaccine as 'mark of the beast'
stelter chauvin trial international coverage kethevane gorjestani sot rs vpx_00000000.png
stelter chauvin trial international coverage kethevane gorjestani sot rs vpx_00000000.png
Now playing
02:19
How the rest of the world is covering the Derek Chauvin trial
CBS This Morning
Now playing
01:57
Hunter Biden makes rare comment about seized laptop
Fox News
Now playing
03:43
Tucker Carlson's interview with Gaetz gets uncomfortable
NEW YORK, NY - FEBRUARY 09: News headlines on the impeachment trial of Donald Trump are displayed outside of the Fox headquarters on February 09, 2021 in New York City. After listening to nearly four hours of legal arguments, the Senate has voted on Tuesday to move ahead with the impeachment trial of former President Trump. (Photo by Spencer Platt/Getty Images)
Spencer Platt/Getty Images
NEW YORK, NY - FEBRUARY 09: News headlines on the impeachment trial of Donald Trump are displayed outside of the Fox headquarters on February 09, 2021 in New York City. After listening to nearly four hours of legal arguments, the Senate has voted on Tuesday to move ahead with the impeachment trial of former President Trump. (Photo by Spencer Platt/Getty Images)
Now playing
04:03
Dominion Voting Systems files $1.6 billion lawsuit against Fox News
 President Donald Trump waves as he departs on the South Lawn of the White House, on December 12, 2020 in Washington, DC.
Al Drago/Getty Images
President Donald Trump waves as he departs on the South Lawn of the White House, on December 12, 2020 in Washington, DC.
Now playing
01:35
Trump praises Capitol rioters 'hugging and kissing the police'
Now playing
01:33
Meghan McCain is, again, in the hot seat over diversity comments
Now playing
01:51
John Oliver calls out Meghan McCain's response to Atlanta shootings
(CNN) —  

Two years after she signed with the network amid much fanfare, Megyn Kelly and NBC have officially parted ways.

The split was announced on Friday ending a drawn-out and acrimonious exit that was put in motion in the fall after Kelly defended Halloween costumes that incorporate blackface during a segment on her 9 a.m. talk show.

“The parties have resolved their differences, and Megyn Kelly is no longer an employee of NBC,” the network said Friday night.

Talks about ending “Megyn Kelly Today” started before the blackface remarks, due to underperforming ratings and growing tensions between Kelly and NBC executives. But the Halloween controversy sealed her fate, according to sources familiar with the matter. Her talk show was cancelled within days, and her lawyer began negotiating the terms of her exit.

Kelly is halfway through a three-year contract worth a total of $69 million – an eye-popping sum even by the inflated standards of television news.

Bowing to the terms of the contract, NBC will pay Kelly the remaining sum of money, believed to total about $30 million, two of the sources said.

Kelly will be subject to an industry standard nondisparagement clause, limiting what she can say about her time at NBC and her interactions with NBC executives. Television contracts typically include language to protect both sides in the event of an ugly breakup.

But representatives for the host and the network declined to comment on the exact terms of her exit.

Kelly is not believed to be subject to any “noncompete” clause, which means that in theory she can join another network right away, the sources said.

But Kelly does not currently have an agent, and there is no indication that she has another job lined up.

When approached by celebrity photographers on the street in New York City on Thursday, and asked “will we see you on TV this year,” Kelly said. “You will definitely see me back on.”

A representative for Kelly declined to comment further.

Friday’s announcement marks a premature end to a partnership that ultimately failed to elevate the anchor’s stature and the network’s ratings. And the hostility surrounding her departure stands in sharp contrast to the optimism that greeted her arrival at NBC in January 2017.

After 12 years at Fox News, Kelly was one of the most sought-after stars in the television news world, drawing interest from a number of networks. Fox reportedly offered her a new contract worth more than $20 million a year, but Kelly was eager to shed the combative style she honed at the conservative network.

“Barbara Walters has retired,” Kelly told Variety in 2015, when she was still at Fox. “Oprah has moved to the OWN network and is doing a different thing now. So why not me?”

At NBC, Kelly hoped she would be able to fulfill the softer role she had long envisioned for herself. The network had ambitious plans for Kelly, handing her hosting duties for a Sunday evening news magazine and the 9 a.m. hour of the “Today” show. But the marriage was awkward from the jump.

“Sunday Night with Megyn Kelly” was poorly received and ended after a short run in the summer of 2017. And “Megyn Kelly Today” was defined by disappointing ratings and awkward moments, with the host sometimes seeming ill-suited for the bubbly world of morning television.

Kelly won plaudits for aggressively covering cases of sexual misconduct when the #MeToo movement became an international story in late 2017.

But her coverage – especially of the case involving “Today” show co-host Matt Lauer – rankled some of her colleagues.

This contributed to tensions between Kelly and NBC executives, including NBC News chair Andy Lack, who invested tens of millions of dollars in her hiring.

Last September, Kelly publicly contradicted part of Lack’s account about why NBC opted not to air Ronan Farrow’s reporting about Harvey Weinstein.

By that point, there were already questions about how much longer Kelly’s 9 a.m. show would last. She had few allies inside NBC, and more than a few detractors.

Her lowest moment came on October 23, when she led an on-air discussion about offensive Halloween costumes.

Kelly said it was acceptable when she was a kid to don black face “as long as you were dressing up as, like, a character.” And she defended a reality TV star who took heat last year for dressing up as Diana Ross.

“And I don’t know, I felt like who doesn’t love Diana Ross?” Kelly said. “She wants to look like Diana Ross for one day. I don’t know how, like, that got racist on Halloween.”

The backlash to Kelly was swift and immediate, exceeding the outrage she generated for her remarks years ago about Santa’s race. Kelly apologized to her staff that afternoon. And she apologized on her show the following day, saying “the country feels so divided and I have no wish to add to that pain and offense.”

Many of her “Today” show colleagues were not satisfied. Kelly drew forceful on-air denunciations from Al Roker and Craig Melvin, two African-American hosts on “Today.” And Lack condemned Kelly’s comments at a town hall, a clear sign that she had lost the support of the executive who helped woo her to the network.