MIAMI — The Dolphins have agreed to a deal with San Francisco 49ers offensive coordinator Mike McDaniel to make him their next head coach, the team announced Sunday.

The Dolphins gave McDaniel a four-year contract, a source told ESPN’s Adam Schefter.

McDaniel’s hiring marks the end of a nearly month-long search since the Dolphins fired Brian Flores on Jan. 10.

Dallas Cowboys offensive coordinator Kellen Moore was the other finalist for the job.

McDaniel, who identifies himself as multiracial, joins the Pittsburgh Steelers‘ Mike Tomlin, Washington Commanders‘ Ron Rivera and the New York Jets‘ Robert Saleh as the league’s only minority head coaches. The 49ers will receive two third-round draft selections (one in 2022 and another in ’23, per a league spokesman) as compensation under the Rooney Rule for developing a minority assistant who was hired for an NFL head-coaching job.

McDaniel, 38, gets his first head-coaching job at any level after spending 15 seasons in the NFL and two in the UFL. He spent one season as San Francisco’s offensive coordinator after being promoted in January 2021. In that season, the 49ers had the league’s seventh-best offense in terms of yards per game and produced an All-Pro in wide receiver Deebo Samuel.

McDaniel began his NFL career as an intern for the Denver Broncos in 2005, then spent three seasons as an offensive assistant with the Houston Texans under Gary Kubiak. He spent another three seasons as an offensive assistant and a wide receivers coach for Washington — on a staff that included current head coaches Matt LaFleur of the Green Bay Packers, Sean McVay of the Los Angeles Rams and Kyle Shanahan of the 49ers.

McDaniel followed Shanahan, at the time an offensive coordinator, to a one-year stint with the Cleveland Browns, where he was a wide receivers coach, then spent two years with the Atlanta Falcons, where he was an offensive assistant. Shanahan became the 49ers’ head coach in 2017 and hired McDaniel as the run game coordinator before promoting him to offensive coordinator last offseason. In McDaniel’s five seasons in San Francisco, the offense has ranked 11th in rushing yards, with the fifth-highest percentage of runs that pick up 10 or more yards.

McDaniel will become the Dolphins’ 11th head coach, interim or otherwise, since 2000, after they employed just three head coaches in their 34 previous years of existence. They fired Flores after he went 24-25 in three seasons, including two of the franchise’s seven winning seasons this century.

Flores filed a racial-discrimination lawsuit against the NFL, Dolphins, New York Giants and Denver Broncos last week over the interview processes in New York and Denver and his firing by Miami. In that lawsuit, Flores alleged that owner Stephen Ross offered him $100,000 per loss during the 2019 season. Ross denied the accusation last week.

ESPN’s Nick Wagoner contributed to this report.

Source: www.espn.com