Chicago: Welington Castillo hit his first career grand slam and drove in a personal-best five runs, and the Baltimore Orioles snapped a six-game losing streak with a rain-delayed 10-6 victory over the Chicago White Sox on Wednesday night.

Castillo gave the Orioles an 8-5 lead with his drive against Miguel Gonzalez (4-8) in the fifth inning and helped prevent them from matching their longest slide of the season. Baltimore also evened its record at 32-32 after falling below .500 for the first time since Oct. 3, 2015.

“We needed a win, we got one today and hopefully we can keep it rolling,” Dylan Bundy said.

The Orioles have been struggling since a 22-10 start.

Things weren’t looking good for them early on, after Matt Davidson homered in his third straight game to help Chicago grab a 5-1 lead. But the Orioles turned this one around, pounding out 13 hits and overcoming two errors on the way to a lopsided victory.

Trey Mancini had a double and two singles. He scored three runs and drove in one.

Mark Trumbo added two hits and two runs, and a shaky Dylan Bundy (7-5) got the support he needed. The right-hander picked up the win after going 1-4 in his previous six starts. He gave up five runs and six hits in five innings.

Gonzalez got pounded for eight runs — matching his highest total since June 25, 2016 — and nine hits over five innings. The right-hander is 1-8 in his past nine starts.

“I’ve been there before and I’ve had success,” he said. “Right now I’m struggling. I just have to keep working between my starts and hopefully everything will turn around.”

The game was delayed 90 minutes at the start. And after getting outscored a combined 16-8 by the White Sox over the previous two games, the Orioles looked like they might get blown out again.

They jumped into it by scoring three in the fourth, with Hyun Soo Kim’s two-run single cutting it to 5-4. Castillo got caught in a rundown between second and third on the play for the third out, but did he ever make up for it in the fifth.

Gonzalez retired the first two batters before giving up singles to Trumbo and Mancini and walking Jonathan Schoop. That brought up Castillo, whose towering grand slam to the bushes beyond the center-field wall gave the Orioles an 8-5 lead.

Results

(Home team in CAPS)

LA ANGELS 7 NY Yankees 5

Milwaukee 7 ST. LOUIS 6

Baltimore 10 CHICAGO WHITE SOX 6

Seattle 6 MINNESOTA 4

HOUSTON 13 Texas 2

Arizona 2 DETROIT 1

NY METS 9 Chicago Cubs 4

LA Dodgers 6 CLEVELAND 4

TORONTO 7 Tampa Bay 6

Boston 7 PHILADELPHIA 3

Colorado 5 PITTSBURGH 1

Atlanta 13 WASHINGTON 2

Kansas City 7 SAN FRANCISCO 2

SAN DIEGO 4 Cincinnati 2

MIAMI 11 Oakland 6