The Chicago Bulls traded swingman Mike Dunleavy to the Cleveland Cavaliers on Wednesday night as a means of opening up cap space to land free-agent star Dwyane Wade.

Adrian Wojnarowski of The Vertical reported on the Dunleavy trade, as well as Wade’s decision to secure a homecoming to the Windy City on a two-year, $47.5 million contract after 13 seasons with the Miami Heat.

Wade wasn’t able to come to terms with the Heat on a new contract, leaving the possibility open of returning to his birthplace for the next phase of his career. The Bulls needed to free up cap space to acquire him, which led to Dunleavy’s departure.

The Vertical’s Bobby Marks provided further details on how Cleveland went about landing Dunleavy: