The San Francisco Giants have signed Buster Posey to a nine-year, $167 million contract, according to multiple reports.

The deal, which is the longest in franchise history, runs through the 2021 season with a team option for 2022.

There is also a full no-trade clause for the duration of the contract.