It rarely looks pretty when the Mets win these days, but suddenly, Terry Collins’ club has captured nine of its last 14, and it seems the captain is responsible for righting the ship.

Saturday’s 5-1 win over the Washington Nationals at Citi Field was just the latest Mets victory since David Wright’s pick-me-up after a 5-2 loss to the Cubs on June 15, bringing some confidence back to a youthful Mets team.

“I just think that I'm a hell of a motivator,” Wright joked. “This whole streak started (the next day) with that walk-off (4-3 win) against the Cubs (where) we really played lousy up until that ninth inning. I think that kind of kick-started us where we were able to take a deep breath and win a game. It wasn’t pretty, but we won the game.”

Gee beats the Nats for the third time this season. Carlos Torres pitched two shutout innings, and LaTroy Hawkins tossed a scoreless ninth to close it out for the Mets, a day after their bullpen blew a late 4-1 lead for ace Matt Harvey.

Saturday wasn’t pretty, either. Three errors and some shaky Washington relief pitching helped awaken the home bats and the arm of Dillon Gee (6-7, 4.60) helped the Mets grab their first win in Flushing since the walk-off against the Cubs.

The Mets seized control in the fifth when Marlon Byrd smacked a grounder to third that was booted by Ryan Zimmerman, his second fielding error of the game.