Rick Osentoski-USA TODAY Sports

Corbin Carroll had three hits and scored twice, including the go-ahead run during a four-run, ninth-inning rally, lifting the visiting Arizona Diamondbacks to a 7-5 win over the reeling Detroit Tigers on Sunday.

Christian Walker doubled twice, scored a run and knocked in another for Arizona, which has won five straight and 11 of its last 13 games.

Starter Zac Gallen gave up five runs and 10 hits in 5 2/3 innings. Kevin Ginkel (3-0) pitched two innings of scoreless relief for the win and Scott McGough collected his second save.

Zach McKinstry hit a two-run homer for the Tigers, who have lost nine in a row.

Will Vest opened the game for Detroit, pitching a scoreless inning. Joey Wentz went the next 4 1/3 innings and gave up one hit -- Pavin Smith's two-run homer -- while striking out four.

The Tigers got the early jump on Gallen. Kerry Carpenter and Javier Baez had back-to-back two-out singles and Nick Maton smacked a ground-rule double to score Carpenter.

Arizona took a 2-1 lead in the second. Evan Longoria walked before Smith homered to left center.

Detroit tied it in the third. Spencer Torkelson hit a one-out double and moved to third on a Carpenter single. Baez drove home Torkelson with a sacrifice fly.

The Tigers took a 5-2 lead in the fourth. Miguel Cabrera reached on a single and scored on Jake Marisnick's two-out double. McKinstry followed with a homer to right center.

Carroll had a one-out double in the eighth. He then stole third and scored on Lourdes Gurriel Jr.'s groundout to make it 5-3.

Emmanuel Rivera singled with one out in the ninth against Jason Foley (2-2) and Ketel Marte drew a walk. Carroll then ripped a single to bring in Rivera.

Gurriel flied out before Walker smacked an 0-2 pitch for a double. Marte scored on the double and Carroll came home when left fielder Carpenter bobbled the ball. Geraldo Perdomo then knocked in Walker with a single.

Pinch-hitter Andy Ibanez led off the bottom of the inning with a triple and Carpenter drew a one-out walk. McGough then replaced Andrew Chafin and struck out Baez and induced a Maton groundout.

More must-reads:

TODAY'S BEST
Astros 3B breaks out of slump in contract year
Cardinals sign second-round CB
Micah Parsons makes history with new Bleacher Report deal
Celtics assistant named candidate for Lakers HC job
Rudy Gobert fined $75,000 for gesture in Game 4
Former Canadiens GM on Blue Jackets' radar
Cubs designate lefty reliever for assignment
Two-time Super Bowl champ signs with AFC contender
Stars center matches Gretzky feat as Dallas pushes Avalanche to brink
Gritty young Thunder take down veteran Mavericks in Game 4
Cubs acquiring veteran reliever from Mariners
Top-five NBA Draft prospect suffers scary non-contact injury
Hurricanes stay alive with third-period outburst vs. Rangers
Jaylen Brown's big three-pointer gives Celtics 3-1 lead over Cavs
Avalanche star placed in player assistance program
Mercury announce devastating injury on eve of WNBA season
Randy Moss' son makes major football announcement
Reds place key outfielder on injured list with broken thumb
Tom Brady's broadcasting debut set for Week 1 of NFL season
Struggling Cubs reliever placed on injured listÂ