The Boston Red Sox and Trevor Story have agreed to a six-year, $140 million contract, which includes an opt-out clause after the fourth year.

Baseball star Trevor Story, 29, could be moved to second base alongside Red Sox shortstop Xander Bogaerts.

Story has played none position other than shortstop, where he ranked among the majors' best in 2019, with plus-18 outs above average, and was a National League Gold Glove finalist.

Story hit a crowded free-agent field — alongside fellow shortstops Carlos Correa, Marcus Semien, Javier Baez and Corey Seager.

Trevor has shown a lot of power in the past. He hit 37 home runs in 2018, 35 in 2019, 11 during the pandemic-shortened 2020 season, and 24 in 2021.

In 2019, Story reached 100 career homers in 448 games, becoming the fastest shortstop. He also tied for 14th in the majors in steals last season with 20.

He ranked in the top 10 in home runs, doubles, triples, and stolen bases during his six-year tenure with Colorado.

Story now has time to re-establish himself as a top player. In 2018 and 2019, he made the team. He has been in the top 12 of MVP voting three times.