ALAMEDA, Calif. — The Oakland Raiders have agreed on a four-year deal to make Denver defensive coordinator Dennis Allen their new head coach.

A person familiar with the process said Thursday that the two sides had completed the contract. The person spoke on condition of anonymity because the team is not publicly discussing the search. first reported the length of the deal.

New general manager Reggie McKenzie had decided Tuesday to hire Allen to replace the fired Hue Jackson as head coach. Allen is Oakland's seventh head coach since 2003.

The 39-year-old Allen will be the first new Raiders coach to come from the defensive side of the ball since late owner Al Davis hired linebackers coach John Madden in 1969.