Williams and the 49ers agreed to terms Tuesday on a restructured contract that guarantees the next two seasons of his contract, Adam Schefter of ESPN reports.

Williams' cited "security" as the No. 1 goal of his training camp holdout, per Kevin Patra of NFL.com, and this restructure would seem to fit the bill. The 36-year-old left tackle called his new deal a "a win-win" scenario for both himself and San Francisco. The 11-time Pro Bowler is still playing at an elite level, and with the 49ers also having successfully retained Brandon Aiyuk after a tumultuous offseason, the key pieces of their offense will be intact heading into a Week 1 matchup against the Jets on Monday.