Updated

The New York Jets have an agreement in principle to hire Robert Saleh as their next head coach, the team announced late Thursday.

Saleh, the former San Francisco 49ers defensive coordinator, will replace Adam Gase, who was fired after a 2-14 season with New York. Saleh is the fourth Jets head coach since 2009 and the 20th in franchise history. He is believed to be the first Muslim head coach in NFL history.

Saleh had also interviewed for the Philadelphia Eagles’ job after the organization fired Doug Pederson on Monday. New York also interviewed Tennessee Titans offensive coordinator Arthur Smith earlier Thursday. Smith left without a deal done and that’s when the Jets moved on Saleh.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

The 41-year-old is the son of Lebanese parents and the second minority coach to get a head coach position in the franchise, following Todd Bowles in 2015. He will be the fourth active minority coach next to Washington’s Ron Rivera, the Dolphins’ Brian Flores and the Steelers’ Mike Tomlin.

ODELL BECKHAM JR. SAYS 'DON'T BE SURPRISED' WHEN BROWNS WIN AGAINST CHIEFS ON SUNDAY

He spent the last four seasons with the 49ers. His defense was ranked No. 2 in the league last season and made a Super Bowl appearance before losing to the Kansas City Chiefs. San Francisco dealt with a number of injuries on the defensive side of the football this season and didn’t play nearly as well.

There will be a lot of questions surrounding the Jets this offseason, including what to do with Sam Darnold. New York has the No. 2 pick in the upcoming draft and the smart pick appears to be at quarterback. But that will all depend on what they see in Darnold.

New York also has 20 unrestricted free agents to meet with and make decisions on.

CLICK HERE TO GET THE FOX NEWS APP

It will be Saleh’s first head coach job at any level. He got his start in the NFL in 2005 as a defensive assistant with the Houston Texans.

The Associated Press contributed to this report.