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
Top-five NBA Draft prospect suffers scary non-contact injury
Hurricanes stay alive with third-period outburst vs. Rangers
Jaylen Brown's big three-pointer gives Celtics 3-1 lead over Cavs
Avalanche star placed in player assistance program
Mercury announce devastating injury on eve of WNBA season
Randy Moss' son makes major football announcement
Reds place key outfielder on injured list with broken thumb
Tom Brady's broadcasting debut set for Week 1 of NFL season
Struggling Cubs reliever placed on injured list 
Report: Justin Fields had ‘toxic' relationship with ex-Bears QB
Extension makes Lions QB Jared Goff one of NFL's highest-paid players
Kentucky's Reed Sheppard displays excellent skills at NBA Draft Combine
Knicks big man undergoes another ankle surgery
Flames CEO stepping down, transitioning to advisory role
Oilers star seemingly dismisses Arturs Silovs' performance in Game 3
Bengals QB Joe Burrow is making a notable change to stay healthy in 2024
Orioles designate outfielder for assignment
Antoine Winfield Jr. agrees to record contract extension with Buccaneers
Bears coach provides massive update on QB Caleb Williams' progress
Rookie camp sheds light on Patriots' efforts to develop Drake Maye