CHICAGO (AP) -- All the Chicago Cubs had to do the past two days was look across the field and take note.
They saw a postseason staple celebrate. Then, it was a longtime loser's turn.
The Pittsburgh Pirates are headed to the playoffs for the first time in 21 years, clinching at least a National League wild card Monday night when they beat Chicago 2-1 and the Washington Nationals lost to St. Louis.
Well, they've watched two teams party on their field, with Atlanta capturing the NL East on Sunday. That's about as close as the Cubs get to the playoffs this season.
When it will be their turn is anyone's guess. Chicago is last in the NL Central and a long way from contention as another rough season comes to an end.
"That's what we need to do," starting pitcher Jeff Samardzija said. "I think we're getting there, but we need to get some things ironed out."
Pittsburgh is making its first trip to the postseason since Barry Bonds, Jim Leyland and Co. won three straight NL East titles from 1990-92. Bonds then left for San Francisco as a free agent, and the small-budget Pirates piled up 20 consecutive losing records -- the longest streak in the four major professional sports.
"Even though I didn't lose for the last 20 years, they make you feel like you are. You feel like you lost those 20 years," Andrew McCutchen said. "That's all you hear. You hear it every single day -- 'When's it going to change? You think this is the year?' You get sick and tired of hearing that. It's awesome that there won't be any questions anymore. The question is, 'Are we going to be able to go farther?'"
Starling Marte hit a tiebreaking homer in the ninth inning at Wrigley Field, and the Pirates threw out a runner at the plate for the final out.
The Pirates sprayed each other with bubbly and beer and sparkling cider in the visitors' clubhouse once St. Louis' 4-3 win over the Nationals became final.
The Cincinnati Reds also clinched at least a wild-card berth, when they beat the New York Mets 3-2 in 10 innings. The Pirates and Reds, both 90-67, trail St. Louis by two games in the NL Central with five to go.
Pittsburgh players sang Journey's "Don't Stop Believing." They chanted "MVP! MVP!" while dousing McCutchen. They took pictures and manager Clint Hurdle finally had them gather for a group photo in the middle of the cramped visitors' clubhouse.
"The people of Pittsburgh have been waiting a long time," said Neil Walker, who homered.
Baseball fans in Chicago know all about long waits, particularly Cubs faithful.
Their team hasn't won a championship since 1908, around the time the Model T was introduced. Of course, it's only been five years since the Cubs won their second straight division title, but it sure seems like a long time.
The Pirates snapped a 1-all tie when Marte sent a drive off Kevin Gregg (2-6) with two outs in the ninth into the left field bleachers.
They preserved the victory on the final out when McCutchen, the center fielder, picked up Ryan Sweeney's bloop single after the ball hit off right fielder Marlon Byrd's glove and threw to first baseman Justin Morneau, positioned just in front of the pitcher's mound. Morneau made the relay to catcher Russell Martin, who applied the tag on Nate Schierholtz trying to score from first base.
Still on his knees, Martin held the ball over his head in jubilation. Then was grabbed by closer Jason Grilli before heaving the ball toward deep left field as the Pirates celebrated near the mound. Grilli escaped with his 32nd save in 34 chances.
"Twenty-one years since we popped champagne in a Pirates clubhouse-- and we're acting like it's been a long time," Hurdle said.
The Cubs tied it in the eighth off Mark Melancon (3-2).
Marte's 12th homer set off loud boos for Gregg (2-6), who was almost released last week after going on a rant to reporters when he thought he had lost the closer's job to Pedro Strop.
Walker homered against Samardzija in the first to give the Pirates a 1-0 lead, and Charlie Morton pitched three-hit ball over seven scoreless innings before the Cubs tied it against Melancon.
Brian Bogusevic led off the eighth with a single, his second hit, and moved up on a groundout by Darwin Barney. Then, after a wild pitch, he scored the tying run on a single by pinch-hitter Donnie Murphy.
That spoiled a terrific start for Morton, who struck out five and walked one.
Samardzija was almost as good, allowing one run and five hits over six innings. He struck out seven and walked four after going 0-1 with a 7.11 ERA in his previous four starts.
He pitched seven solid innings against Milwaukee last week but got into a disagreement with third base coach David Bell over defensive positioning in the dugout.
Samardzija's only blemish in this one came when Walker drove a 1-1 pitch out to left-center with one out in the first.
Samardzija settled down after that but got little support as the Cubs lost for the 10th time in 13 games.
Asked if there were any positives seeing opponents celebrate on back-to-back days, Schierholtz didn't see any.
"When you're on the losing side, probably not," he said. "Just trying to win games. A loss is a loss, you know?"
NOTES: Hurdle said he hasn't set his rotation for the final series against Cincinnati, beyond A.J. Burnett starting on Friday. He would not say if struggling All-Star Jeff Locke will make his scheduled start on Saturday. The left-hander got roughed up by the Reds in Sunday's loss and is 2-5 with a 6.12 ERA since the All-Star break. "We are just having those conversations," Hurdle said when asked about Locke's status. ... Martin was in the Pirates' lineup after leaving Sunday's game with soreness in his left knee, an issue he's been dealing with since late July. Martin said he was feeling better and that the Pirates would "have to fight to try to get me out of the lineup." ... RHP Gerrit Cole (9-7, 3.23 ERA) starts Tuesday for Pittsburgh, with LHP Chris Rusin (2-5, 3.52) going for Chicago.