The 49ers’ biggest offseason question has been answered. Left tackle Trent Williams will return to the club on a 6-year, $138 million contract, according to ESPN’s Dianna Russini.

This was the most significant domino left to fall for San Francisco’s offseason. With Williams’ deal settled, they now have a better view of what kind of finances they have to work with through the rest of free agency.

The 49ers acquired Williams from Washington on Day 3 of last year’s draft. In exchange they sent a 2020 fifth-round pick and a third-round selection in 2021. Williams after missing all of the 2019 campaign knocked off a little rust early and put together arguably his finest season as a pro.

Williams, 32, made it clear he wanted to test his value on the open market, but barring an unforeseen Godfather offer from a needy club like the Colts that had a ton of cap space, it’s hard to believe the 49ers’ intention all along wasn’t to go as high as they needed to to keep the eight-time Pro Bowler in red and gold.