St. Louis, MO (SportsNetwork.com) - Jhonny Peralta cracked a home run in the bottom of the 10th inning to give the St. Louis Cardinals a 3-2 victory over the Arizona Diamondbacks on Monday.

After Cardinals closer Trevor Rosenthal (1-0) got out of a bases-loaded jam in the top half of the 10th, Peralta opened the home half with a solo blast to left off J.C. Ramirez.

"He's just a pro," Cardinals manager Mike Matheny said of Peralta. "The game looks easy to him."

Ramirez (1-1) got out of a first-and-second jam by striking out the side in the ninth but he could not keep the hosts off the board as the Cardinals won their second straight following a three-game skid.

Matt Adams got St. Louis on the board in the first with an RBI groundout and Jason Heyward ripped a single off shortstop Nick Ahmed's glove that brought home Adams for a 2-0 lead after four innings.

Arizona could not figure out Cardinals starter Carlos Martinez, but Kevin Siegrist couldn't hold the lead in the eighth.

Ender Inciarte led off the frame with a single to right preceding Mark Trumbo's seventh homer of the season. Siegrist then walked the next two batters which caused Cardinals manager to call on Seth Maness to work out of the mess.

"I think we fought really hard against a really good team," said Trumbo. "I think everyone is actually pretty pumped up about the way we battled."

Maness got Yasmany Tomas to fly out to right, then Chris Owings was retired on a sacrifice bunt and Tuffy Gosewisch struck out to end the frame.

In the home ninth, Enrique Burgos allowed two singles to start the inning, but the Cardinals could not capitalize with the heart of their order coming up. Ramirez was summoned out of the D-backs bullpen and he struck out Matt Carpenter, Matt Holliday and Adams to escape trouble.

Arizona loaded the bases with one out in the 10th, but Rosenthal struck out Owings and got Gosewisch to ground out.

Game Notes

Martinez scattered five hits over seven innings with eight strikeouts ... D- backs starter Chase Anderson went six innings and gave up two runs on 10 hits ... Arizona, which had won six of seven, went 1-for-10 with runners in scoring position ... Ahmed had his nine-game hitting streak halted ... Wong went 3- for-5 in the win.