Genevieve Ross, File, Associated Press
FILE - In this Dec. 4, 2011, file photo, Denver Broncos defensive coordinator Dennis Allen appears before an NFL football game against the Minnesota Vikings in Minneapolis. The Oakland Raiders reportedly agreed Tuesday, Jan. 24, 2012, to hire Allen as their new head coach, breaking a more than three-decade stretch of offensive-minded head coaches for the franchise, according to Fox Sports and ESPN, with both outlets saying final details were still being worked out Tuesday night.

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.