Mitch Trubisky is going to get a shot at replacing Ben Roethlisberger.

A person with knowledge of the deal tells The Associated Press that Trubisky and the Pittsburgh Steelers have agreed to terms on a two-year contract that will give Trubisky a chance to compete for the starting quarterback job following Roethlisberger's retirement in January.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

The person spoke to the AP on the condition of anonymity because the deal was not yet official.

The agreement was first reported by NFL Network.

FILE - Buffalo Bills quarterback Mitchell Trubisky runs with the ball during the second half of an NFL football game against the Houston Texans, Sunday, Oct. 3, 2021, in Orchard Park, N.Y. A person with knowledge of the deal tells The Associated Press the Pittsburgh Steelers have agreed to terms on a two-year contract that will give Trubisky a chance to compete for the starting quarterback job following Roethlisberger's retirement in January. The person spoke to the AP on the condition of anonymity because the deal was not yet official. Financial details were not disclosed.

FILE - Buffalo Bills quarterback Mitchell Trubisky runs with the ball during the second half of an NFL football game against the Houston Texans, Sunday, Oct. 3, 2021, in Orchard Park, N.Y. A person with knowledge of the deal tells The Associated Press the Pittsburgh Steelers have agreed to terms on a two-year contract that will give Trubisky a chance to compete for the starting quarterback job following Roethlisberger's retirement in January. The person spoke to the AP on the condition of anonymity because the deal was not yet official. Financial details were not disclosed. (AP Photo/Adrian Kraus, File)

Trubisky, 27, joins the Steelers after spending 2021 backing up Josh Allen in Buffalo following a flame out in Chicago. The second overall pick in the 2017 draft spent four uneven seasons with the Bears, going 29-21 as a starter while passing for 10,652 yards with 64 touchdowns against 38 interceptions.

Trubisky joins a quarterbacks room that includes longtime Pittsburgh backup Mason Rudolph. The team is also expected to bring back Dwayne Haskins, who served as Pittsburgh's third quarterback last season.

CLICK HERE TO GET THE FOX NEWS APP

The move is among the first of what will likely be a busy free-agent market for Pittsburgh, which is looking to fill holes at several positions following a 9-7-1 season that ended with a blowout loss to Kansas City in the first round of the playoffs.