CLEVELAND (AP) -- Jacoby Ellsbury's two-out homer in the 14th inning gave the New York Yankees a 5-4 victory over the Cleveland Indians on Wednesday night.

Derek Jeter celebrates with Mark Teixeira of the New York Yankees after Teixeira hit a two-run home run at Progressive Field in Cleveland. (Jason Miller, Getty Images)

Ellsbury hit his sixth home run of the season on an 0-2 pitch from Vinnie Pestano (0-1).

Chase Whitley (4-2) pitched two scoreless innings. David Robertson recorded his 22nd save, retiring All-Star Michael Brantley on a long fly ball to left with a runner on second to end the game.

Before the game, New York placed rookie sensation Masahiro Tanaka, who leads the majors with 12 wins, on the 15-day disabled list due to right elbow inflammation. The All-Star had an MRI in New York on Tuesday.

The marathon took 4 hours, 51 minutes and featured a second seventh-inning stretch before the Indians batted in the 14th.

Mark Teixeira of the Yankees hit a solo homer in the fourth and a two-run blast in the fifth.

Nick Swisher had a two-run single in the first when Cleveland scored three runs.

(Copyright 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)