Joshua Dobbs. Ron Chenoy-USA TODAY Sports

Quarterback Joshua Dobbs became something of a cult hero last year, and his play was good enough to land him a deal with an NFC contender.

Dobbs is signing a one-year deal with the San Francisco 49ers, his agent Mike McCartney announced Monday. The deal means Dobbs will have a chance to win the team’s backup quarterback job.

The 49ers also have Brandon Allen, who will be Dobbs’ chief competition for the role. Brock Purdy is firmly entrenched as the team’s starter.

Dobbs started for the Arizona Cardinals last season with Kyler Murray still recovering from his knee injury.

Once Murray returned, Dobbs was shipped to the Minnesota Vikings, where he became a hero as Kirk Cousins’ replacement

At the time, there was talk that he was playing himself into a big free-agent contract, but his play tailed off and he wound up benched before the end of the season.

The 29-year-old quarterback wound up throwing for 2,464 yards with 13 touchdowns and 10 interceptions last season. He added another 421 rushing yards and six rushing touchdowns to go with those numbers.

More must-reads:

TODAY'S BEST
Tyrese Haliburton’s father addresses his incident with Giannis Antetokounmpo
Patriots' Austin Hooper explains what teammates can expect from HC Mike Vrabel
Falcons to pick up star WR's fifth-year option
Falcons react to NFL levying fine against team and defensive coordinator Jeff Ulbrich
Insider names frontrunner in Browns' QB competition after drafting Shedeur Sanders
Yankees offense goes nuclear in blowout win
Giannis Antetokounmpo rips Tyrese Haliburton's father for 'disrespectful' act
Celtics make unique NBA playoff history in Game 5 win
How Steelers reportedly expect Aaron Rodgers saga will end
Juan Soto's bat speed decline threatens Mets' $765 million investment
NFL team executive expands on what Browns' Shedeur Sanders did wrong before draft
Insider suggests four-time Pro Bowl option for Steelers if Aaron Rodgers doesn't sign
Watch: Pacers, Tyrese Haliburton eliminate the Bucks in OT
Stanley Cup playoffs takeaways: Hurricanes advance, panic time for Maple Leafs
Jayson Tatum's historic game helps send Celtics to Eastern Conference semis
Pirates ace Paul Skenes explains why he's not concerned about potential injuries
Steelers may have found another steal in UDFA pool as Pittsburgh lands an athletic freak
49ers sign star TE to four-year extension
Spurs' Stephon Castle runs away with Rookie of the Year Award
Kings to make Doug Christie new head coach in full-circle moment