The San Francisco 49ers have agreed to a four-year, $26 million deal with Antoine Bethea.

Bethea will replace Donte Whitner at safety.

Bethea turns 30 in July and has started every game over the past six seasons.