(AP) — The New York Yankees needed 18 innings to complete a three-game sweep of the Cubs at Wrigley Field.

Aaron Hicks scored the tiebreaking run on Starlin Castro's fielder's choice in the 18th inning to send the Yanks past the Cubbies, 5-4. Hicks opened the inning with a single, advanced on an error and moved to third on a sacrifice bunt before shortstop Addison Russell threw offline to the plate on Castro's grounder.

New York was two outs away from a regulation, 4-1 victory until former Cub Aroldis Chapman gave up consecutive RBI singles to Albert Almora and Javier Baez. Chapman also hit Anthony Rizzo with two out and the bases loaded to force in the tying run.

Jacoby Ellsbury's two-run homer in the eighth put the Yankees ahead by three. Chapman's stumble took a win away from Luis Severino, who struck out nine while limiting Chicago to a run and four hits over seven innings.

The Yankees' fifth straight win leaves them an American League-best 20-9 and drops the defending World Series champs one game behind Cincinnati in the NL Central.

Elsewhere in the majors:

Tyler Chatwood pitched into the eighth inning and Mark Reynolds homered for the third straight day as the Rockies took the rubber match of their three-game set, 5-2 over the Diamondbacks. Chatwood was working on a one-hitter when he took a comebacker off his right hand to end his day. He was reached for just one run and two hits over seven-plus innings.

— Pinch-hitter Aaron Altherr crushed a game-tying, three-run homer in the eighth inning before Freddy Galvis lifted a sacrifice fly to give the Phillies, a 6-5, 10-inning win over Washington. The Nationals fell to 21-10 despite Jayson Werth, who was 4-for-5 with two home runs and three RBIs versus his former team.

— Giancarlo Stanton ripped a three-run homer and a solo shot off emergency starter Adam Wilk in his first two at-bats to set the tone in Miami's 7-0 shutout of the Mets. Wilk was on the mound in place of Matt Harvey, who received a three-day suspension without pay from the team for undisclosed violation of team rules.

— The Cardinals wasted a 4-0 lead before beating Atlanta, 6-4 on Tommy Pham's two-run homer in the 14th. Pham homered twice after Matt Carpenter smacked a first-inning blast in the Redbirds' third consecutive win.

— Homers by Travis Shaw, Jesus Aguilar and Eric Thames powered Milwaukee past the Pirates, 6-2 in Pittsburgh. Thames slammed his first homer in 10 games after hitting 11 in his first 20 contests.

— Scott Feldman pitched a four-hitter and the Reds ran their winning streak to a season-high five games by blanking San Francisco, 4-0. Scott Schebler and Zack Cozart homered off Johnny Cueto as Cincinnati finished off their first sweep of the Giants since 2013.

— Cleveland's Mike Clevinger worked 5 2/3 innings and combined with four relievers on a one-hitter in a 1-0 victory over Kansas City. Carlos Santana had three hits, including an RBI single in the fifth.

— Chris Tillman was a winner in his season debut as he held the White Sox to three singles over five innings of Baltimore's 4-0 shutout win. Trey Mancini had three hits and as the Orioles completed a three-game sweep.

— Sandy Leon hit a pair of two-run homers and Chris Sale fanned 10 over six innings of Boston's 17-6 rout of Minnesota. Dustin Pedroia, Andrew Benitendi and Mookie Betts also went deep for the Red Sox, who broke it open with a 10-run ninth.

— Darwin Barney's tiebreaking homer in the eighth pushed Toronto past Tampa Bay, 2-1. Joe Biagini allowed an unearned run in four innings and combined with four relievers on a three-hitter to help the Blue Jays win a series in at Tropicana Field for just the fifth time in 31 tries since 2007.

— Jose Altuve supplied the big hit in Houston's 5-3 victory over the Angels, a three-run homer during the Astros' four-run third. Houston got four scoreless innings from its bullpen to help Mike Fiers get his first win of the season.

— Kyle Seager's eighth-inning single homer capped Seattle's comeback in a 4-3 verdict over Texas. The Mariners trailed 3-0 with two out in the seventh until Jean Segura worked out a bases-loaded walk and pinch-hitter Danny Valencia followed with a two-run, bloop single.

— Ryon Healy hit a walk-off, two-run homer to cap Oakland's three-run bottom of the ninth in an 8-6 stunner against Detroit. Yonder Alonso homered for the fifth time in six games before the Athletics claimed their second consecutive comeback win.

— The Dodgers and Padres were rained out in San Diego and will make up the game as part of a day-night doubleheader on Sept. 2. It was the first rainout at Petco Park since July 2015.

More From 1460 ESPN