The Mavericks and Raptors recruited the Orlando Magic and Memphis Grizzlies to help facilitate the deal. The Raptors will get Hedo Turkoglu in a sign-and-trade deal with the Magic rather than signing him outright. They also will receive forwards Devean George and Antoine Wright from the Mavericks.
Marion will receive a five-year, $40 million contract from the Mavericks.
Stackhouse will go to the Grizzlies, who will waive him. Only $2 million of Stackhouse's $7 million contract for next season is guaranteed. The Grizzlies will receive cash, likely $3 million, to participate in the trade.
Toronto, which gets to keep its midlevel salary-cap exception, sends a trade exception to Orlando. The Mavericks also will receive forward Kris Humphries from the Raptors.
The Dallas Morning News first reported the Mavericks were nearing a deal for Marion, describing the trade as "on the lip of the cup."