The Boston Red Sox have agreed to trade infielder Marcelo Mayer to the San Francisco Giants for left-handed reliever Erik Miller, per reporting from Ken Rosenthal and Andrew Baggarly of The Athletic. The deal is pending medical reviews.

Mayer, the fourth overall pick in the 2021 draft, failed to establish himself in the majors after entering as one of the most recognizable prospects in Red Sox history. The 23-year-old infielder did not catch on with Boston, prompting the organization to explore alternatives. The Giants are banking on a change of scenery to help the young prospect.

Miller joins a Red Sox roster that has also added outfield help elsewhere, though details on that addition were not available in the available reporting.