Former San Francisco 49ers defensive coordinator DeMeco Ryans has reportedly agreed to a six-year contract with the Houston Texans to become their next head coach.

The Texans just announced Tuesday that they had a second interview with the Ryans, and it was clearly a meeting that went well, as the job posting says.

«We have completed additional discussions with the DeMeco Ryans regarding our head coaching position,» the Texans said in a statement.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

San Francisco 49ers defensive coordinator DeMeco Ryans prior to the Miami Dolphins game at Levi’s Stadium on December 4, 2022 in Santa Clara, California.
(Michael Zagaris/San Francisco 49ers/Getty Images)

ESPN reported that the agreement was reached later on Tuesday.

After turning down the Denver Broncos’ head coaching vacancy, it became clear that Ryans was about to be named the next Texans man to lead the locker room. He was also a fan favorite, having played six seasons for them during his NFL career.

But the Broncos were reportedly persistent. NFL Network reported that they strove to reach an agreement with the Ryans on Tuesday, but he committed to the Texans.

So the Broncos turned around and reached an agreement with the New Orleans Saints to send compensation in exchange for Sean Payton becoming their next head coach.

Overseeing the NFL’s No. 1 defense in yards and points allowed last regular season, Ryans became a top coaching candidate by reaching the postseason. After losing to the Philadelphia Eagles in the NFC Championship Game on Sunday, Ryans is ready to jumpstart his coaching career.

JJ WATT’S CRYPTIC TWIT HAS NFL WORLD WONDERING IF HE COULD TRANSITION TO COACH

In addition to the Broncos, Ryans canceled interviews with the Arizona Cardinals and Indianapolis Colts for his head coaching performances last Saturday as he wanted to focus on the championship game.

San Francisco 49ers defensive coordinator DeMeco Ryans talks with linebacker Fred Warner during training camp on July 31, 2021 in Santa Clara, California.

San Francisco 49ers defensive coordinator DeMeco Ryans talks with linebacker Fred Warner during training camp on July 31, 2021 in Santa Clara, California.
(Thearon W. Henderson/Getty Images)

Ryans made two Pro Bowls during his years with Houston, playing with them from 2006-11.

TEXANS Rookie WR JOHN METCHIE MAKES ‘INCREDIBLE’ PROGRESS IN RECOVERY FROM LEUKEMIA, GM SAYS

What the Texans crave is a head coach who can provide job stability after having four in the past three seasons. First, it was Bill O’Brien during the 2020 season, with Romeo Crennel taking his place as interim coach.

Then David Culley and Lovie Smith have had one-off campaigns the past two seasons.

DeMeco Ryans of the 49ers during the divisional playoff game against the Dallas Cowboys at Levi's Stadium on January 22, 2023.

DeMeco Ryans of the 49ers during the divisional playoff game against the Dallas Cowboys at Levi’s Stadium on January 22, 2023.
(Lachlan Cunningham/Getty Images)

The Ryans will take over a young roster that needs to continue to rebuild since they last made the playoffs in 2019.

CLICK HERE TO GET THE FOX NEWS APP

He and general manager Nick Caserio will be armed with the No. 2 overall pick in the 2023 NFL Draft, as well as a projected salary cap of $39 million.