SEATTLE -- The Chicago White Sox needed 17 hits, eight pitchers and more than 5½ hours to end their eight-game losing streak. So while they were happy to put the slide behind them, it was all about some rest after this one was over.

Alejandro De Aza and Alex Rios each had an RBI single in the 16th inning, and the White Sox held on for a 7-5 victory over the Seattle Mariners on Wednesday.

"We're all too exhausted right now to relish it," Chicago second baseman Gordon Beckham said. "But when you're down, you've got an eight-game losing streak, and you're battling and what happens in the 14th happened it's like, 'How can it get any worse?' ... We battled and hopefully it does enough for us to get going back in the right direction."

De Aza's tiebreaking hit came after the teams combined to make baseball history when Chicago scored five times in the top of the 14th, only to have Seattle complete an improbable rally on Kyle Seager's tying grand slam off Addison Reed (2-0) with two out.

According to the Mariners, with information from Elias Sports Bureau, Seager was the first player to hit a tying grand slam in extra innings and no team ever had scored five or more runs in the 14th inning or later to tie a game. It also was the first game in major league history when each team scored five or more runs in the game when it was scoreless through the ninth.

After 13 innings of offensive futility, the two sides combined for 10 runs and 10 hits in the 14th inning alone. Clocking in at 5 hours, 42 minutes, the game was too long for Chicago manager Robin Ventura, who had to leave early to catch a flight for his daughter's high school graduation.

"We had a lot of big hits in the 14th," said Chicago bench coach Mark Parent, who took over when Ventura left. "The whole pitching staff and the team really rallied around each other. It was really good to see."

The events of the 14th all became a footnote when the White Sox scored twice in the 16th against Hector Noesi (0-1), who gave up three runs and seven hits in three innings. De Aza drove in Beckham and eventually came around on an infield hit by Rios, who also singled home the first run of the game.

The two-run cushion proved to be enough for Reed this time. He struck out Brendan Ryan on three pitches, and then got Endy Chavez and Jason Bay swinging.

Reed was charged with five runs and five hits over three innings, but got the victory. Reed had never thrown more than 1 2-3 innings and 40 pitches. He threw 55 pitches and was at the end of his stint when he recorded the final out. Parent's plan should the game go to the 17th was to have outfielder Casper Wells take the mound.