Castro signed a one-year, $3.5 million contract with the Diamondbacks on Friday, Jon Heyman of the New York Post reports.

Castro will head to Arizona after spending the 2022 campaign with the Yankees, producing a 4.03 ERA and 1.45 WHIP with 31 strikeouts over 29 innings in 34 appearances out of the bullpen. The 27-year-old right-hander will likely operate in a middle-relief role for Arizona. The Diamondbacks have a club option on the contract for 2024 worth an additional $3.5 million.