WASHINGTON — A night after a brutal loss, the Mets got back to doing what they have since the All-Star break: Winning another series.

Justin Wilson and the bullpen held on this time, the rookie Pete Alonso hit his major league-leading 45th home run and the Mets rebounded to stop the Nationals, 8-4, on Wednesday afternoon.

A day after three Mets relievers were tagged for seven runs in the bottom of the ninth inning in an 11-10 loss to the Nationals, three pitchers combined to close with three and a third scoreless innings.

“That was a tough loss last night,” Manager Mickey Callaway said. “They bounced back well. They came out swinging the bats. We did the job on the mound. That was a good win.”