PORTLAND, Maine — The Trenton Thunder spoiled the Portland Sea Dogs final home game of the season with a 4-3 victory in 11 innings in an Eastern League baseball contest in front of a sellout crowd of 7,368 to close out the Sea Dogs’ home schedule in 2016.

The Sea Dogs and Trenton split the series and played 26 innings of baseball in the final two games.

Trenton’s Jose Rosario reached on an error by Yoan Moncada and advanced to second base to begin the 11th inning. After Austin Maddox (L, 2-3) loaded the bases, Abiatal Avelino hit a line drive off the the glove of second baseman Ryan Court — who was drawn in with nobody out — and Rosario and Francisco scored the winning runs.

Moncada hit a solo home run on the first pitch from Daniel Camarena in the bottom of the first inning to give Portland the early lead. The homer was Monada’s 11th of the year in Double-A and his second from the right side.

Trenton took the lead in the third inning on a two-run home run by Mark Payton off of Jalen Beeks.

Beeks allowed just the two runs on four hits in six innings, walking two and striking out five.

Camarena allowed two runs on five hits over 7 1/3 innings of work, walking one and striking out seven. J.R. Graham (W, 2-1) worked 2 ⅔ scoreless innings in relief, and Cale Coshow worked a scoreless 11th to earn his fourth save.

Portland tied the game in the bottom of the eighth. With runners on first and second and one out, Aneury Tavarez hit an RBI double to left off of Graham to score Tzu-Wei Lin and tie the game 2-2.

Jake Drehoff held the Thunder scoreless for a season-high 3 2/3 innings in relief of Beeks.

The Sea Dogs play their final eight games of the season on the road, beginning Monday night against the division-leading Reading Fightin Phils.

On Saturday night, the Thunder plated two runs in the 15th inning and outlasted the Sea Dogs 4-2 to clinch a playoff berth in front of a sellout crowd at Hadlock Field.

The Thunder bullpen finished the game with 9 2/3 scoreless innings and 17 strikeouts. Matt Wotherspoon allowed one hit in 1 2/3 scoreless innings and Giovanny Gallegos threw two perfect frames and struck out the final five batters he faced.

Tyler Jones worked three scoreless and allowed three hits while walking two and striking out five. J.P. Feyereisen (W, 7-3) closed out the game with three scoreless innings.

Trenton pitchers combined to strike out 21 Sea Dogs hitters, tying a franchise record for the most strikeouts in a game by Portland.

After Trenton’s Tyler Wade reached on an error to begin the 15th inning, he stole second and scored on an RBI single by Miguel Andujar off of Taylor Grover (L, 2-4). Three batters later Billy McKinney hit an RBI single to score Francisco Diaz and put Trenton ahead 4-2.

Trenton took the first lead in the fourth inning on an RBI single by Abiatal Avelino off of Teddy Stankiewicz and extended the lead to 2-0 in the fifth on an RBI single by Dustin Fowler to score Sebastian Valle.

Stankiewicz allowed two runs on seven hits with no walks and three strikeouts.

The Sea Dogs were able to tie the game in the bottom of the fifth on an RBI single by Rainel Rosario to score Cody Decker and an RBI groundout by Ryan Hanigan later in the inning to score Rosario.

Hanigan joined the Sea Dogs Saturday on a rehab assignment from parent club, the Boston Red Sox, and finished the game 0-for-3 with a walk and an RBI.

Thunder starter Will Carter went 6.1 innings and allowed two runs on six hits while walking two and striking out four.

The Sea Dogs bullpen was also strong until the 15th. Ty Buttrey worked 2 1/3 scoreless innings for Portland while Williams Jerez went two scoreless and allowed just one hit. Ben Taylor added 2 2/3 hitless innings before Taylor Grover entered and worked two scoreless before allowing the winning runs in the 15th.