The receiver was slated to enter free agency this offseason.
Boldin, 33, led the San Francisco with 85 receptions and 1,179 receiving yards last year. He started his career in Arizona, where he played seven years before playing three seasons in Baltimore. Boldin helped lead the Ravens to a Super Bowl victory over the 49ers in 2013.
The three-time Pro Bowler announced that he would be returning to the 49ers in a Twitter post on Monday.
.@49ers fans, I wanted to be the first to tell you I’m returning to San Francisco - http://t.co/XsGmyZRTSE pic.twitter.com/SgOtlLPTH7
— Anquan Boldin (@AnquanBoldin) March 3, 2014
49ers head coach Jim Harbaugh said last month that the team’s main priority was to re-sign Boldin this offseason and that the contract negotiations were moving “in a positive direction.”
Anquan Boldin re-signs with the 49ers. It's a two-year contract extension.
— Matt Maiocco (@MaioccoCSN) March 3, 2014
49ers, Anquan Boldin agree to a 2-year, $12 million deal w/ $9 million guaranteed. (via @Edwerderespn) » pic.twitter.com/EkQUve5Byw — SportsCenter (@SportsCenter) March 3, 2014