TRENTON, N.J. — The Trenton Thunder defeated the Portland Sea Dogs 7-4 in the rubber game of their three-game series at Arm & Hammer Park on Wednesday afternoon.

Portland’s Aneury Tavarez tripled to lead off the game and scored on a groundout by Mauricio Dubon to give the Sea Dogs a 1-0 lead.

But Trenton scored three runs in the third inning off Portland starter Kevin McAvoy (6-5) and added two more in the fifth on a Dustin Fowler home run.

McAvoy allowed five runs on six hits in six innings, walking none and striking out six.

First baseman Cody Decker hit a three-run homer, his seventh of the season, in the sixth inning to cut Portland’s deficit to 5-4. But the Sea Dogs could muster only one baserunner in the final three innings against Trenton’s bullpen. Decker was 2 for 4 with a double.

The Sea Dogs (35-61) return to Hadlock Field on Thursday to begin a seven-game homestand.