The Cincinnati Reds have agreed to terms on a four-year, $64 million deal with Nick Castellanos.

The deal matches the biggest free-agent contract in team history.

It allows Castellanos to opt out and become a free agent after the 2020 or 2021 seasons. He gets salaries of $16 million in 2020, $14 million in 2021, and $16 million in 2022 and 2023.

There's a mutual option for 2024 at $20 million with a buyout of $2 million.