Infielder Marcus Semien and the Texas Rangers are in agreement on a seven-year contract, sources familiar with the deal told ESPN's Jeff Passan on Sunday.

The deal is worth $175 million, a source said.

The Rangers were not done there, however. They also were finalizing a four-year, $56 million contract with right-hander Jon Gray, pending a physical, sources familiar with the deal told Passan.

After a 102-loss season, the Rangers had indicated they were willing to spend as needed and could be active in free agency this offseason to improve the team. They went into the offseason with only about $28 million committed to salaries for 2022.

Gray, 30, who had spent his entire career with the Colorado Rockies, recovered from a rough 2020 season to post a 4.59 ERA with 157 strikeouts in 149 innings in 2021. He nearly doubled his strikeout percentage and dropped his hard-hit rate from 46% to 38%.

Semien, too, struggled in the shortened 2020 season with the Oakland Athletics, and he bet on himself last offseason, accepting a one-year offer from the Toronto Blue Jays in an attempt to rebuild his value and reenter free agency. He bet right. Semien moved to second base with Toronto and responded with one of the best power seasons from a second baseman in major league history, hitting .265/.334/.538 with 45 home runs, breaking Brian Dozier's record for home runs by a second baseman.

The move to second base went smoothly as well, as Semien won a Gold Glove. He played every game for the second time in three seasons (and has missed just 10 games over the past four) and led the majors with 86 extra-base hits. While he played in the shadow of teammate Vladimir Guerrero Jr. throughout the season, Semien finished second in the American League in Baseball-Reference WAR behind Shohei Ohtani and third in FanGraphs WAR behind Ohtani and Guerrero, then finished third in the MVP race, matching his result in 2019, and making him the only player with two top-three MVP finishes in the past three seasons.

Even including 2020, when he hit .223, Semien leads all position players in both bWAR and fWAR since 2019.

To cash in on his big season, Semien brought on Scott Boras as his new agent. Semien is entering his age-31 season after turning 31 in September and reportedly went into free agency seeking a $200 million contract. The last position player that age (or older) to receive that much in free agency was Robinson Cano, who signed a 10-year, $240 million contract with the Seattle Mariners prior to the 2014 season.

Semien's approach at the plate was a little different in 2021 than during his 2019 breakout season, when he hit .285/.369/.522 with 33 home runs. He walked more that season but became more aggressive in 2021, especially on fastballs, as 36 of his 45 home runs came on fastballs. That approach did leave him more vulnerable to breaking balls, as he hit .193 against curveballs and sliders compared to .246 in 2019.

One evaluator told ESPN's Buster Olney in October: "I know [Semien's] power numbers jumped [in 2021], but I wouldn't expect that's going to continue. He's not really a home run hitter." Perhaps, but Semien's approach did become more geared to power. He became more adept at pulling the ball in the air -- he pulled 39 of his home runs, many of those right down the line -- and increased his fly ball rate from 25.5% in 2019 to 36.7%.

Originally drafted by the Chicago White Sox out of the University of California, Semien returned to the Bay Area when the A's acquired him in 2015. He famously struggled defensively early that season at shortstop, committing 24 errors by the end of June (he finished the season with 35 errors, the most in a season since 2000). Through work with A's coach Ron Washington, however, Semien became an above-average shortstop, finishing with plus-17 defensive runs saved combined over the 2016-19 seasons.

He was even better at second base, leaving Semien attractive to teams seeking a player at either up-the-middle position, although he had stated his preference was to return to shortstop. Semien also comes with a high reputation as a person and teammate, leading one insider to tell Olney, "I would put my head on the pillow every night knowing that the money I spent to sign him is going to be worth it."