The San Francisco 49ers have agreed to a historic deal with Trent Williams.

According to sources, the two sides have reached a six-year, $138 million deal that will make Williams the highest-paid offensive lineman in NFL history.

The deal includes $55.1 million guaranteed and a $30.1 million signing bonus.