OAKLAND, Calif. — Mark Trumbo hit a grand slam for his major league-leading 32nd homer and drove in five runs as the Baltimore Orioles beat the Oakland Athletics 9-6 on Thursday to avoid a four-game sweep.

The Orioles had been shut out for 17 straight innings and lost their lead in the AL East following three consecutive one-run losses before Trumbo sparked them.

The All-Star slugger hit an RBI single in a three-run fourth, then connected the next inning for his third career grand slam.

Chris Tillman (15-4) allowed two runs over seven innings for his first victory since July 21. He is Baltimore’s first 15-game winner since Bud Norris and Wei-Yin Chen in 2014.

Zach Britton retired three batters for his AL-leading 35th save this season and his 37th consecutive dating to last season.

ASTROS SWEEP TWINS: Evan Gattis homered and had four RBI, Carlos Correa went deep for the third straight game and Houston beat Minnesota 10-2 in the late game to sweep a doubleheader at Minneapolis.

Houston had 16 hits in the nightcap, three fewer than it had in a 15-7 win during the day.

The doubleheader was necessitated by a rainout Wednesday, a game Minnesota led 5-0 in the third before storms arrived.

Jose Altuve had four hits in the first game and was 1 for 4 in the nightcap. He leads the major leagues with a .365 batting average.

ROYALS 2, WHITE SOX 1: Danny Duffy pitched his first complete game to win his eighth straight decision, Cheslor Cuthbert had two hits and drove in a run and Kansas City won at home.

Duffy (9-1) limited the White Sox to seven singles, struck out six and walked none. He has not lost since June 6 and has a 1.73 ERA in his past five starts. Duffy threw 98 pitches, 71 for strikes.

NATIONAL LEAGUE

DIAMONDBACKS 9, METS 0: The last-place Diamondbacks rattled Noah Syndergaard with four more stolen bases, then broke open the game in a six-run sixth inning that included Chris Owings’ bases-loaded triple and rolled to a rout at New York that completed a three-game sweep.

Braden Shipley (2-1), making his fourth big league start, pitched three-hit ball over seven innings, struck out seven and walked one. Zack Godley and Dominic Leone finished the five-hitter.

PIRATES 4, PADRES 0: Rookie Jameson Taillon pitched three-hit ball for eight innings, David Freese drove in two runs and Pittsburgh won at home.

Taillon (3-2) struck out four and walked two. The Pirates helped him with two double plays.

Neftali Feliz got two outs in the ninth, and also gave up a single and a walk. Tony Watson posted his fourth save by striking out Jabari Blash.

BREWERS 11, BRAVES 3: Matt Garza won his third straight start and Milwaukee backed him with three home runs in a win over visiting Atlanta.

Garza (4-4) allowed two runs and seven hits in six innings.

Chris Carter hit a two-run homer in the first inning. Scooter Gennett and Hernan Perez each hit a solo homer to help Milwaukee build a 6-0 lead.

INTERLEAGUE

ROCKIES 12, RANGERS 9: Pinch-hitter Carlos Gonzalez delivered a bases-clearing double that capped a five-run rally in the eighth inning and Colorado held on to win at Arlington, Texas.

After David Dahl drew a bases-loaded walk from hard-throwing Matt Bush with two outs to tie it at 9, Gonzalez doubled into the left-center gap. The three-run drive came in his first appearance since he sprained an ankle Monday night.

The Rockies had lost three straight to the Rangers, who got the deciding runs in the eighth inning or later in each of those wins.