8 P.M. UPDATE: McDaniels will reportedly remain with the Patriots. An earlier version of this story is below.
The Indianapolis Colts have hired Josh McDaniels as their coach.
The hiring of the New England Patriots' offensive coordinator was announced Tuesday on the Colts' Twitter account. It comes a little more than three weeks after word leaked the sides were close to a deal.
Contract terms were not immediately available. A news conference has been scheduled for Wednesday.
McDaniels is the second Patriots assistant to leave since their Super Bowl loss. The Lions announced Monday that they had hired Patriots defensive coordinator Matt Patricia as their head coach.
McDaniels was New England's offensive coordinator the past five years. NFL rules prohibited the Colts from making the hiring official until the Patriots' season ended. New England lost 41-33 to Philadelphia in Sunday's Super Bowl.
He won five Super Bowl rings with New England and went 11-17 as Denver's head coach in 2009 and 2010.