The ouster of Bill O’Reilly, the top-rated cable news host, from Fox News capped an extraordinary period of upheaval at the company, marked by a series of sexual harassment allegations that resulted in the downfall of Roger E. Ailes, the powerful chairman of the network, as well as a damaging exodus of advertisers.

Here is a look at the nine and a half months that shook the network: