Two Western Conference teams in desperate need of a shakeup got together for a five-player trade Saturday afternoon.

NBC Sports California confirmed through a league source that the Kings acquired Kent Bazemore, Anthony Tolliver and two second-round draft picks from the Portland Trail Blazers in exchange for Trevor Ariza, Caleb Swanigan and Wenyen Gabriel.

Ariza signed a two-year, $25 million contract with the Kings during the summer, but just $1.8 million of his $12.8 million salary is guaranteed for next season.

Swanigan is going back to the team that drafted him. Sacramento acquired the big man last season in exchange for Skal Labissiere. The 22-year-old out of Purdue played a total of 56 minutes over 10 games between the last two seasons with the Kings.

After signing as a two-way player with the Kings last season, Gabriel earned a roster spot in training camp with his work ethic and strong play. He appeared in 11 games this season with the Kings, averaging 1.7 points and 0.9 rebounds in 5.5 minutes.

Bazemore struggled with his shot in Portland, but he’s averaging 7.9 points, 4.0 rebounds and 1.4 assists in 25.8 minutes per game. The 30-year-old veteran can play the two and the three, and likely will step into Ariza’s spot in the rotation.

This is Tolliver's second tour of duty in Sacramento. Known as a solid locker-room presence, the veteran stretch four is averaging just 3.9 points and 3.3 rebounds in 16.8 minutes per game this season.

According to a source, the Kings also acquired the Blazers' 2024 and 2025 second-round draft picks in the deal. The Kings now have a combined 12 second-round picks from now until 2025.

Portland saved a huge amount of money in the transaction. Bazemore is owed $19.3 million this season and Tolliver is due $2.6 million. Both players have expiring contracts at the end of the season.

Sacramento is sending out Ariza’s $12.2 million, $2 million for Swanigan and another $1.4 million owed Gabriel.

The Blazers will save roughly $6.3 million in salary and an estimated $12.6 million in luxury tax, which is why they gave up the two second-round picks in the trade.

[RELATED: Fox's development is silver lining in tough Kings season]

The trade can't be consummated until Tuesday because of Gabriel’s signing restriction, according to ESPN's Bobby Marks.

Portland/Saramento trade cannot happen until Tuesday Jan. 21 because Wenyen Gabriel still has a signing restriction. — Bobby Marks (@BobbyMarks42) January 18, 2020

This is the first of what could be multiple moves for the Kings. They have until the Feb. 6 trade deadline to find center Dewayne Dedmon a new home. Dedmon publicly demanded a trade late last month.