Luis Arráez had the go-ahead single in the 11th inning, sparking a rally as the Padres beat the Diamondbacks 10-5 Tuesday.

Arráez was hitless in five at-bats before his bloop single into short left field, which was enough to score Fernando Tatis Jr. from second base for a 6-5 lead.

The Padres tacked on four more runs in the 11th on six hits, but had the chance to do so because of Jose Iglesias.

San Diego‘s third baseman made a great defensive play to end the 10th inning, fielding a ground ball, stepping on third and throwing to first for the double play.

The Friars have won eight of their past 10 games and kept pace with the Dodgers in the National League West, staying three games back.

Arizona had a three-game winning streak snapped.

Arizona’s Lourdes Gurriel Jr. hit two homers, including one on a 103.9 mph fastball from Mason Miller that made it 5-all in the eighth. It was the hardest hit pitch for a homer since MLB began pitch tracking in 2008.

Ramón Laureano — who, along with Miller, was added from the Orioles at last week’s trade deadline — had a two-run double in the seventh that gave the Padres a 5-3 lead.

The 31-year-old is 8 for 22 at the plate over five games with his new team after three hits and three RBIs Tuesday. Manager Mike Shildt called his work at the plate on the night “just great at-bats.”

D-backs starter Ryne Nelson gave up two runs over 5 2/3 innings, striking out eight.

The right-hander left the game with a 3-2 lead and nobody on base in the sixth, but the D-backs bullpen walked four straight batters — three by Kyle Nelson and one by Andrew Hoffmann — to force in the tying run.

Gurriel hit a two-run homer in the first to give the D-backs a 2-0 lead. It was his 13th homer of the season and first in more than a month.

The Padres send another newcomer, Nestor Cortes (1-1, 9.00 ERA) to the mound at 6:40 p.m. Wednesday to face D-backs Anthony DeSclafani (1-2, 4.91).