F​ox News host Bill O’Reilly is out of his job, ​according to a statement from the cable channel’s corporate parent Wednesday.

The host of the top-rated cable TV news show, “The O’Reilly Factor,” was let go amid allegations of sexual harassment and other inappropriate behavior, sources said.

“After a thorough and careful review of allegations against him, the Company and ​Bill O’Reilly have agreed that Mr. O’Reilly will not return to the Fox News Channel,” said a statement from 21st Century Fox Executive Chairman Rupert Murdoch and his sons, Lachlan and James Murdoch.

“This decision follows an extensive review done in collaboration with outside counsel.”

More than 50 companies publicly announced they wouldn’t advertise on “The O’Reilly Factor” following an April 1 New York Times report about how O’Reilly and F​ox News paid about $13 million to settle complaints from five women who had worked for him or appeared on his show.

In a statement to the Times, O’Reilly said that “no one has ever filed a complaint about me with the Human Resources Department, even on the anonymous hotline.”

He never addressed the controversy on “The Factor” before announcing on April 11 that he was leaving for a long-planned family vacation.

A Wednesday photo by the Vatican newspaper, L’Osservatore Romano, showed O’Reilly shaking hands with Pope Francis in St. Peter’s Square.