The stars came out in the ninth.

After struggling shortstop Pete Kozma twice had the hit that helped the Cardinals regain the lead, the Cardinals’ All-Stars took over in the ninth inning Sunday as they rallied for a third and final time against the spunky Cubs. All-Star Carlos Beltran had the double that set up All-Star Allen Craig for the tiebreaking RBI in the top of the ninth. All-Star catcher Yadier Molina put the game away with his fourth hit of the game, a three-run homer into the bleachers at Wrigley Field for a 10-6 victory.

As his club split a four-game set with the rival Cubs this final weekend before the All-Star break, Cardinals manager Mike Matheny applauded his team’s “fight.” He described them as “relentless.” He used “resiliency” repeatedly. Sunday’s seesaw game invited the same descriptions.

“Very fitting for a way to end before the break,” Matheny said. “Very impressive resiliency. … You get kicked in the gut, normally you see a team collapse. These guys? It just makes them mad.

“It’s a tough brand of baseball, in my opinion.”

The Cardinals arrive at the All-Star break after peppering the Cubs with a season-high 21 hits, including 10 with two outs. For the second consecutive game every position player who started had at least a hit. Molina tied career highs with four RBIs and four hits. Kozma had three hits.

They entered the game hitless in their previous 44 at-bats combined.

"We have a good offense, and we can be down two or five runs," Molain said, "and we know that we can still score six, seven runs in one inning. That shows you what kind of team we have and why we're in first place."