Sam Greene/The Enquirer / USA TODAY NETWORK

The Arizona Diamondbacks acquired infielder Diego Castillo from the Pittsburgh Pirates on Friday in exchange for minor league right-hander Scott Randall.

Castillo, 25, made his major league debut last season and batted .206 with 11 homers and 29 RBIs in 96 games.

He started 30 games for the Pirates at shortstop, 18 at second base, 18 in right field and three at first base.

Randall, 24, was a seventh-round pick by Arizona in 2021 and went 6-7 with a 3.82 ERA in 21 starts last season at Class-A Hillsboro. He struck out 104 batters in 108 1/3 innings.

The Diamondbacks designated right-hander Taylor Widener for assignment in a corresponding transaction.

Widener, 28, was 0-1 with a 3.63 ERA in 14 relief appearances last season for Arizona.

More must-reads:

TODAY'S BEST
Saints, star CB 'moving forward' following trade chatter
Pacers ride historic shooting performance to Game 7 blowout of Knicks
Timberwolves mount incredible second-half comeback to stun Nuggets in Game 7
Xander Schauffele proves doubters wrong with historic win at 2024 PGA Championship
Four things we learned from Joey Logano's All-Star Race win at North Wilkesboro
Phil Foden lifts Manchester City to fourth consecutive English Premier League title
Watch: Aaron Judge blasts 13th home run in Yankees' seventh straight win
Canucks won't have linchpin forward for Game 7 vs. Oilers
Jags reportedly mulling extension for Trevor Lawrence, but is that the right choice?
Gordon Hayward calls role with Thunder 'frustrating'
Mets reliever Edwin Diaz showing short shelf life of closers
Three offseason moves the 49ers must make
Watch: NASCAR drivers exchange punches after crash in All-Star Race
Knicks star offers passionate defense of HC Tom Thibodeau after Game 7 loss
Knicks' Jalen Brunson suffers serious injury in Game 7 vs. Pacers
Dodgers add recently acquired left-hander to active roster
Report: 2023 No. 7 pick expected to terminate KHL contract, join Flyers
Mavericks advance to Western Conference Finals aided by controversial call late
Connor McDavid, Oilers hammer Canucks to force Game 7
Tyson Fury-Oleksandr Usyk epic increases excitement for potential rematch

Want more Pirates news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.