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)
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)
PHOTO: Phillip Faraone/Getty Images for Fortune
Now playing
04:29
Was Megyn Kelly always doomed at NBC?
PHOTO: CBS
Now playing
01:46
Dr. Birx: Trump presented graphs that I never made
former press secretaries jen psaki biden panel rs vpx_00000626.png
former press secretaries jen psaki biden panel rs vpx_00000626.png
Now playing
04:28
'A return to normalcy': Former press secretaries weigh in on Psaki
White House press secretary Jen Psaki speaks during her first press briefing at the White House, Wednesday, Jan. 20, 2021, in Washington. (AP Photo/Evan Vucci)
White House press secretary Jen Psaki speaks during her first press briefing at the White House, Wednesday, Jan. 20, 2021, in Washington. (AP Photo/Evan Vucci)
PHOTO: Evan Vucci/AP
Now playing
01:48
WH press secretary vows transparency and honesty on first day
PHOTO: CNN
Now playing
01:42
Acosta describes covering last day of Trump administration
BEVERLY HILLS, CA - AUGUST 01:  Larry king attends The Paley Center For Media Presents: A Special Evening With Dionne Warwick: Then Came You at The Paley Center for Media on August 1, 2018 in Beverly Hills, California.  (Photo by Alberto E. Rodriguez/Getty Images)
BEVERLY HILLS, CA - AUGUST 01: Larry king attends The Paley Center For Media Presents: A Special Evening With Dionne Warwick: Then Came You at The Paley Center for Media on August 1, 2018 in Beverly Hills, California. (Photo by Alberto E. Rodriguez/Getty Images)
PHOTO: Alberto E. Rodriguez/Getty Images
Now playing
08:54
Larry King dies at age 87
PHOTO: CNN
Now playing
06:48
Biden fist-bumps members of the media during inaugural parade
Now playing
01:26
Kaitlan Collins cracks up over CNN throwback video
PHOTO: CNN
Now playing
01:53
'Wow! She actually said that': Cooper reacts to Fox Business host's false riot claim
Now playing
04:44
CNBC host reveals why he left Fox News
WASHINGTON, DC - JANUARY 12: U.S. President Donald Trump turns to reporters as he exits the White House to walk toward Marine One on the South Lawn on January 12, 2021 in Washington, DC. Following last week
WASHINGTON, DC - JANUARY 12: U.S. President Donald Trump turns to reporters as he exits the White House to walk toward Marine One on the South Lawn on January 12, 2021 in Washington, DC. Following last week's deadly pro-Trump riot at the U.S. Capitol, President Trump is making his first public appearance with a trip to the town of Alamo, Texas to view the construction of the wall along the U.S.-Mexico border. (Photo by Drew Angerer/Getty Images)
PHOTO: Drew Angerer/Getty Images
Now playing
01:54
Right-wing media slams GOP lawmakers who voted to impeach
Now playing
02:26
Stelter: Right-wing media has shifted in a way I've never seen before
NEW YORK, NY - NOVEMBER 12:  Joe Scarborough attends the "The Right Path: From Ike To Reagan, How Republicans Once Mastered Politics - And Can Again" book event on November 12, 2013 in New York, United States.  (Photo by Rob Kim/Getty Images)
NEW YORK, NY - NOVEMBER 12: Joe Scarborough attends the "The Right Path: From Ike To Reagan, How Republicans Once Mastered Politics - And Can Again" book event on November 12, 2013 in New York, United States. (Photo by Rob Kim/Getty Images)
PHOTO: Rob Kim/Getty Images
Now playing
01:22
Joe Scarborough drops f-bomb in on-air rant against rioters
PHOTO: CNN
Now playing
02:55
Stelter: Notable that Fox News hasn't promoted this
PHOTO: Fox News
Now playing
02:07
Watch these Fox News hosts criticize holiday travel guidance
(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.

She didn’t appear on the network again. Three days after her blackface remarks on air, NBC announced that it had canceled “Megyn Kelly Today.”

Talks about the terms of her exit soon turned contentious, with Kelly’s attorney Bryan Freedman accusing Lack of leaking details about the negotiations. NBC fired back, saying the network had respected the confidentiality of the process while Freedman has “repeatedly commented to the media throughout the negotiations.”

Both sides then reached a quiet resolution, which was announced on Friday night.