Tim Kurkjian breaks down the return the Orioles received for Manny Machado, highlighted by outfielder Yusniel Diaz. (0:40)

The Los Angeles Dodgers won the Manny Machado sweepstakes, acquiring the prized All-Star shortstop from the Baltimore Orioles in a trade Wednesday night.

The Orioles received five prospects: outfielder Yusniel Diaz, right-hander Dean Kremer, third baseman Rylan Bannon, righty Zach Pop and third baseman Breyvic Valera.

"Obviously, it's a bittersweet day for our organization," Dan Duquette, the Orioles' executive vice president of baseball operations, said Wednesday night. "We watched Manny grow up in our franchise the past eight years. We all know what an exceptional talent he is, from the great plays that he made to his elite hitting. He's always going to be an important part of our club's history."

Machado, 26, is expected to be introduced by the Dodgers in Milwaukee on Friday before they open a series against the Brewers.

"We viewed Manny Machado as a big difference-maker," Dodgers general manager Farhan Zaidi said.

The Dodgers are in a close race in the NL West, leading Arizona by a half-game going into the second half of the season.

"Our first hope is we have a division-winning roster," Zaidi said. "Any time you have a chance to add an impact player in a tight division race, that's something you have to look at closely."

Machado's contract expires at the end of the season, and the last-place Orioles decided against negotiating an expensive, multiyear extension because they have too many holes on the roster as the team moves into rebuilding mode.

"We tried to maintain a competitive club this year, and that's why we resisted the offers we had in the offseason to trade Manny,'' Duquette said. "But when it became obvious that it was time to look to the future, trading Manny is the first step in the plan to rebuild our ballclub.''

Asked if the Dodgers would re-sign Machado, Zaidi demurred.

"Let's have him at least show up in a Dodger uniform before we start asking those questions," he said. "We hope he plays well and creates a good market for himself. We're not worried about what happens past 2018."

The deal hit a snag earlier Wednesday, according to multiple reports, with the Orioles having some issues regarding the physical of one of the prospects Los Angeles had agreed to send.

According to Fancred, the issue was not related to Diaz, the centerpiece of the deal.