The San Francisco 49ers have agreed to a three-year contract extension with Marquise Goodwin.

The new deal is worth $20.3 million and includes $10 million in guaranteed money, according to a source.

He is now under contract through the 2021 season.

"I definitely feel like this offense is good for me in the sense that it allows me to be a football player," Goodwin said. "It gives me an opportunity to be out there and make plays, and that's what you would want in a scheme and a system. It's not just targeting me. Everybody gets to shine. That's what's good about this offense. It's not just a one-man wrecking crew, not one guy just making it happen. It's a lot of guys getting an opportunity to make plays."