Seth Maness came into the game in a tight spot and got some big outs for St. Louis Cardinals.

Maness got three straight outs after coming in with the bases loaded in the eighth inning to help the Cardinals hold off the Arizona Diamondbacks 5-3 on Thursday night.

Steve Cishek started the inning and walked the bases loaded before being replaced by Maness, who struck out David Peralta and Welington Castillo and got Jake Lamb to roll out to first to end what could have been a big inning for Arizona.

"You try not to think too much," Maness said. "You know the bases are loaded but it's just one pitch at a time, trying to execute that pitch and on to the next pitch."

Cishek said he felt fine, but the ball was taking off out of his hand. He then got to sit and watch Maness work.

"It was amazing. It was a huge relief. That's what we do, pick each other up." Cishek said. "He was incredible."

Brandon Moss hit his first home run with St. Louis after being acquired in a trade with Cleveland almost a month ago and Tony Cruz hit his first home run of the season, leading the Cardinals to the win and a four-game series sweep.

It was the Cardinals' fifth straight win overall and they finished 7-0 against the Diamondbacks this season.

Carlos Martinez (13-6) earned the win with six innings of four-hit ball, allowing three runs and striking out six with two walks. Trevor Rosenthal got the last three outs for his 41st save as the Cardinals improved to a season-high 37 games above .500 (82-45).

Moss's tiebreaking two-run shot in the fifth inning put the Cardinals ahead 5-3. He'd hit 15 home runs with Cleveland.

"It felt good just to contribute," Moss said. "Offensively it's been a grind, but the guys have been playing great. That's the silver lining in that."

Arizona's Rubby De La Rosa (11-6) gave up all five runs and five hits in five innings. He struck out four and waked four in his first loss since July 12.

De La Rosa threw eight balls on the first nine pitches of the game, and Kolten Wong followed with an RBI double to put the Cardinals ahead 1-0.

Cruz's homer and Matt Carpenter's RBI double in the second stretched St. Louis' lead to 3-0.

The Diamondbacks tied it in the bottom of the third on Lamb's RBI single and Ender Inciarte's two-out, two-run single off Wong's glove.

Diamondbacks manager Chip Hale lamented the lost opportunity to score in the eighth.

"Another situation where the anxiety just gets to you," Hale said. "Guys see it right in front of them, they have a chance to be a hero and want it to bad. That is something with experience we should get better at."