The San Diego Padres acquired second basemanAdam Frazier from the Pittsburgh Piratesfor three minor league players on Monday.
Frazier, 29, who leads baseball in hits this year, is not a free agent until after the 2022 season.
In exchange, the Pirates acquired infielderTucupita Marcano, outfielder Jack Suwinskiandright-hander Michell Miliano.
Pittsburgh is also sending approximately $1.4 million to the Padres in the deal, according to The Associated Press.
Frazier entered Sunday hitting .327 -- the second-best average in Major League Baseball -- with four home runs and 32 RBIs.
A 2020 Gold Glove finalist and an All-Star this season, Frazier was the Pirates' second-longest-tenured player, behind right fielder Gregory Polanco.
When asked about possibly being traded a week ago, Frazier said he wasn't letting it distract him.
"It's pretty cool to be recognized like that and have teams want you," Frazier said. "It means a lot. It tells you you're playing well, but I still have to worry about playing baseball."
Marcano, 21, is hitting .272 with six home runs and 26 RBIs for Triple-A El Paso. He has played this season at shortstop, second base and in the outfield.
Suwinski, 22, has 15 home runs this season for Double-A San Antonio.
Miliano, 21, is 2-2 with two saves and a 3.60 ERA in Class A this season.