SAN DIEGO (AP) - With the Chicago Cubs playing a five-man infield, Manuel Margot was looking for a pitch up in the strike zone that he could elevate.
Turned out he didn't even have to take his bat off his shoulder.
Margot drew a four-pitch, bases-loaded walk with one out in the 10th inning and the San Diego Padres overcame an impressive power display by Kris Bryant and Jason Heyward to beat the Cubs 9-8 Tuesday night.
The Cubs' lead for the second NL wild-card spot was cut to one game over Milwaukee and two over Philadelphia.
Bryant hit a pair of two-run homers and Heyward also homered twice and drove in three runs for the Cubs, who rallied from a 6-2 deficit in the third inning to tie it at 8 after Bryant and Heyward each hit their second home run.
But that show was wasted when Steve Cishek loaded the bases on a single and two walks in the 10th, and then issued a third straight walk, to Margot.
"I felt a bit more confident after he fell behind in the count because I think at that point you're just looking for a good pitch to hit but it didn't come and a walk works, too," Margot said through a translator.
Luis Urias started the winning rally when he beat out an infield single to shortstop with one out. Austin Hedges and Travis Jankowski walked to load the bases and bring up Margot.
The Cubs brought in right fielder Nicholas Castellanos to play first base and give them a five-man infield. It didn't matter, though as Cishek (3-6) walked Margot to bring in Luis Urias with the winning run.
"We came back. We fought hard," Cishek said. "We all walked in ready to go. That's definitely the toughest part, was the fact that we came down from that deficit against a really good, evading pitcher. To be able to walk off on a walk is probably the worst possible thing to do."
Padres manager Andy Green said it was "fortunate" to get three straight walks. "That's not typically how you win baseball games. Little bit of fortune there. Sometimes you have to battle and grind for them, and sometimes they gift them to you."
Cubs manager Joe Maddon said Cishek's wildness "was kind of a surprise. He's been pretty well rested. We didn't see that coming. Even after he had walked a couple guys I still believe he's going to right himself. He's a groundball guy. He's the best guy for us under those circumstances to throw a ball into the five-man infield. It just didn't happen."
Rookie Michel Baez (1-1) pitched the 10th for the win.
Bryant's second homer pulled the Cubs to 8-7 after Anthony Rizzo hit a leadoff single in the eighth. Heyward tied it with his second of the night, a one-out shot to straightaway center. Both came off rookie Andrés Muñoz.
Bryant, who missed the previous two games with a sore right knee that required a cortisone shot on Sunday, has 28 overall and Heyward 21. It was the second multihomer game of the season for both players. Bryant has 12 multihomer games in his career while Heyward has eight.
Cubs starter Jose Quintana went just three innings, giving up six runs - four earned - on seven hits.
• TRAINER'S ROOM: Cubs - INF Addison Russell remained in the concussion protocol after being beaned in Sunday's game at Milwaukee.
• UP NEXT: Cubs - LHP Cole Hamels (7-6, 3.95), who attended San Diego's Rancho Bernardo High, is scheduled to start Wednesday night against rookie RHP Chris Paddack (8-7, 3.54).