John Harbaugh’s offensive coordinator will be Gary Kubiak.  (Steve Ruark / AP)

The Baltimore Ravens hired former Houston Texans coach Gary Kubiak as offensive coordinator.

The team announced the hiring and also said that Rick Dennison, Kubiak’s offensive coordinator with the Texans, would be quarterbacks coach. Kubiak replaces Jim Caldwell, who was named head coach of the Detroit Lions earlier this month.

“We left no stone unturned in this search,” Ravens Coach John Harbaugh said in a statement released by the team. “We are excited about the result and cannot wait to get to work.

“After studying many different candidates, we believe our research and our evaluation process have been as thorough as we could make them.”

Kubiak was fired Dec. 6 as the Texans were in the midst of an 11-game losing streak. (They lost another three under interim coach Wade Phillips.) Kyle Shanahan, Kubiak’s former offensive coordinator in Houston, was a candidate for the Ravens’ job. He was fired along with his father by the Washington Redskins when the season ended.

Harbaugh named three other candidates — Ravens receivers coach Jim Hostler, former Lions offensive coordinator Scott Linehan and Pittsburgh Steelers running backs coach Kirby Wilson — last week.