The Detroit Pistons traded forwards Marvin Bagley III and Isaiah Livers and two future second-round draft picks to the Washington Wizards for Danilo Gallinari and Mike Muscala, Washington announced on Sunday.

The deal unloads $12.5 million in Bagley’s guaranteed money for 2024-25 off the books for the Pistons.

The Wizards land second-round picks in 2025 and 2026 to take on the salary.

The rest of the players involved in the trade – Gallinari ($6.8 million), Muscala ($3.5 million) and Livers ($1.8 million) – are on expiring contracts.