The Miami Marlins acquired All-Star infielder Joey Wendle from the Tampa Bay Rays for minor league outfielder Kameron Misner on Tuesday.

To make room on the 40-man roster, outfielder Lewis Brinson was designated for assignment.

Wendle, 31, was a 2021 American League All-Star and hit .265 with a career-high 11 home runs. He added 31 doubles, four triples and 54 RBI in 136 games for the Rays last season.

A versatile defender, the Wilmington, Del., native started 82 games at third base, 23 games at shortstop, and 16 games at second base in 2021.

Wendle finished last season with 10 defensive runs saved and was a finalist for the AL Rawlings Gold Glove Award at third base. He also played 315.1 innings at shortstop and second base without making an error.

A sixth-round pick by Cleveland in 2012, Wendle has played in parts of six Major League seasons and is a .274 career hitter with 27 home runs and 167 RBI in 436 games. He has made 13 starts in left field and played 18 total games in the outfield as well.

Wendle was a member of Tampa Bay’s postseason roster each of the past three years.

Earlier in the day, the Marlins completed the signing of right-hander Sandy Alcantara to a five-year contract.

Alcantara and the Marlins agreed Sunday to a deal worth $56 million.

He gets a $1.5 million signing bonus and salaries of $3.5 million in 2022, $6 million in 2023, $9 million in 2024 and $17 million apiece in 2025 and 2026. Miami has a $21 million option for 2027 with a $2 million buyout.

Alcantara would receive a one-time assignment bonus of $1 million if traded.

It’s a record-setting deal for the Marlins in a couple of different ways. It’s the longest and richest in history for any first-year arbitration eligible pitcher, according to the Marlins, and the longest deal that the current team ownership group — led by Bruce Sherman and Derek Jeter — have given a player.

The 26-year-old Alcantara went 9-15 with a 3.19 ERA in 33 games, all of them starts, this past season. He was one of only three pitchers in baseball with at least 200 innings and 200 strikeouts, and had an MLB-leading six starts in which he went at least eight innings while allowing no more than one run.

He has been Miami’s opening-day starter in each of the past two seasons. If he starts the opener in 2022, he will be the third Marlins pitcher to do that three times in row — joining only Josh Johnson and Josh Beckett.

Information from The Associated Press contributed to this report.