MSNBC finished first in the key 25-54 demographic and in total viewers against its cable news rivals last week for the first time in its 21-year existence, according to Nielsen Research.

Overall, MSNBC finished second in all of basic cable, only falling to TNT, which aired several NBA playoff games.

Fox News finished third in primetime for the first time in nearly 17 years.

ADVERTISEMENT

For the week of May 15, MSNBC's weekday prime averaged 2.440 million total viewers, with Fox second with 2.405 million and CNN third with 1.649 million.

For adults aged 25-54, MSNBC averaged 611,000 viewers. CNN finished second with 589,000 and Fox third with 497,000.

Lawrence O'Donnell, who is still reportedly in negotiations with the network with his contract set to expire on June 4, was second overall in the cable news race for the week with "The Last Word" at 10 p.m.

Anderson Cooper led the way for CNN, winning his 8 p.m. slot for "AC 360" for five straight days last week over Fox and MSNBC. It marked the first time CNN had such a streak since right after the September 11th attacks at that hour.

The last time Fox finished third for the week (Monday-Friday) was June of 2000.

The finish comes as the 21st Century Fox-owned network finished the first quarter of 2017 as the most-watched cable news network in all of basic cable and 2016 as its most-watched year in its 20-year history.

Fox is still winning the overall race in May, averaging 2.3 million in total viewers and 459,000 in the 25-54 demographic.