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.

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.

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)

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

Ramsey seemed pleased with the exchange, tweeting «MOOD» with a video of an excited crowd at a Lil Yachty concert.

DOLPHINS TO RELEASE FORMER PRO BOWL CORNERBACK BYRON JONES: REPORTS

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.

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.

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)

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.

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

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.

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, Texas.

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, Texas. (Jordon Kelly/Icon Sportswire via Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

Ramsey’s contract has a 2024 opt-out, though he is currently set to be an unrestricted free agent in 2027.