Baltimore Ravens defensive end DeMarcus Ware has agreed to a two-season deal with the San Francisco 49ers, league sources told NFL Media Insider Ian Rapoport.
Ware will earn $1.7 million per season in the deal, which is worth $1 million more than he would have earned in Baltimore if he had not opted out of his $13.8 million option for next season.
Ware was due to make $1,857,921 next season, but he had been under contract through the end of 2020.
Ware had two sacks in 10 games last season, including an interception that tied a season high for a Ravens defensive lineman.
The 27-year-old Ware, who had nine sacks last season for the Ravens, is expected to receive $7.5 million in base salary in the final year of his contract.
Ware has started every game in each of the past three seasons, having played in 11 games in each.
He also played in six games last year.
Ware is the second Ravens player to receive a two-, three- or four-year contract extension.
Defensive tackle Jared Allen, who was a free agent, signed a three-year, $35 million deal in July.