The Miami Dolphins needed to find a replacement after releasing cornerback Byron Jones, and they found an All-Pro to fill the void.

Los Angeles Rams cornerback Jalen Ramsey was traded to the Dolphins for a 2023 third-round pick and tight end Hunter Long, according to ESPN.

Ramsey will also get a new contract as part of the trade, according to NFL Network. He will be on the Dolphins’ books for a fully guaranteed $36.9 million over the next two seasons. He had three years left on his contract, although there was an opt-out for 2024.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Davante Adams, #17 of the Las Vegas Raiders, makes a catch against Jalen Ramsey #5 of the Los Angeles Rams during the first quarter at SoFi Stadium on December 8, 2022 in Inglewood, California. (Sean M Haffey/Getty Images)

The Rams have been making moves this offseason to create salary cap space before the new league year begins on March 15, and Ramsey is the most recent move as they appear to be entering something of a rebuild despite to win the Super Bowl two seasons ago.

Los Angeles was about $9 million over the threshold, according to OverTheCap.com, and Ramsey was set to be capped at $25.2 million.

DOLPHINS TO RELEASE FORMER PRO BOWL CORNERBACK BYRON JONES: REPORTS

Ramsey reportedly had the Dolphins as his preferred destination, and seemed quite happy about the trade, tweeting «MOOD» with a video of a cheering crowd at a Lil Yachty concert.

The Dolphins, on the other hand, needed a replacement on their defense after the team let Jones know he would be released last week despite signing a five-year, $82 million deal with Miami in 2020. He played in all but three games between 2020 and 2021, but missed the entire 2022 season with an Achilles tendon injury.

Los Angeles Rams cornerback Jalen Ramsey reacts after an interception during the first half of an NFL football game against the Tennessee Titans, Sunday, November 7, 2021, in Inglewood, California.

Los Angeles Rams cornerback Jalen Ramsey reacts after an interception during the first half of an NFL football game against the Tennessee Titans, Sunday, November 7, 2021, in Inglewood, California. (AP Photo/Marcio José Sánchez)

Miami was a playoff team last season, occupying one of the wild card spots in the AFC, and their championship window remains open with Tua Tagoailoa getting his fifth-year option and having key pieces like Tyreek Hill, Jeff Wilson Jr. and many others. More on both sides of the ball.

12 NFL TEAMS ATTEND WR ODELL BECKHAM’S PRIVATE TRAINING IN ARIZONA: REPORT

Los Angeles Rams cornerback Jalen Ramsey, #5, during a game between the Los Angeles Rams and the Houston Texans at NRG Stadium on October 31, 2021 in Houston.

Los Angeles Rams cornerback Jalen Ramsey, #5, during a game between the Los Angeles Rams and the Houston Texans at NRG Stadium on October 31, 2021 in Houston. (Jordon Kelly/Icon Sportswire via Getty Images)

Ramsey had a bad year by his standards in 2022 with the Rams, as quarterbacks had an 84.5 passer rating against him, the highest he’s had in a full season with the Rams. However, he intercepted four passes and caused two forced fumbles among 88 combined tackles.

CLICK HERE TO GET THE FOX NEWS APP

Ramsey, 28, is a six-time Pro Bowl and three-time All-Pro corner who continues to play at an elite level. Along with another Pro Bowler in Xavien Howard, head coach Mike McDaniel should form a tandem next season.