NEW YORK -- Jonathon Niese pitched a shutout. He lined a game-breaking double. He worked out a key walk. And he ran through a stop sign to score the first run.

Now that truly is a complete game.

Niese threw a three-hitter and drove in three runs as the New York Mets put aside a devastating injury and a surprising trade, beating the Philadelphia Phillies 5-0 Tuesday night to end a five-game losing streak.

"It was an overall great win for us," Niese said.

Thanks to a great overall effort by him.

"One-man show by Niese," Phillies interim manager Ryne Sandberg said. "Pretty stress-free."

Niese struck out five and walked one in his second career shutout in 112 major league starts. The Mets took advantage of several poor throws to win several hours after trading veterans Marlon Byrd and John Buck to Pittsburgh.

It was Byrd T-shirt giveaway night at Citi Field. Minus the team's RBIs leader, Niese (6-6) handled matters at the plate and on the mound. Good timing, considering ace Matt Harveywas diagnosed this week with a partial tear in his elbow.

"They want to pick each other up," Mets manager Terry Collins said.

Niese retired 17 straight batters and scored the first run by running through third base coach Tim Teufel's late stop sign.

"I had my mind made up," Niese said.

Niese improved to 3-0 in four starts since coming off the disabled list because of a partially torn rotator cuff.

"It's kind of rewarding to know I'm 100 percent now," he said.

After Michael Young led off the second inning with a single, the left-hander didn't permit another runner until Young doubled to begin the eighth.

Niese's other shutout came in 2010. He popped his left hand into his mitt after Chase Utleyflied out to finish this one on his 113th pitch.

Niese pitched his third career complete game. He also became the first Mets pitcher to drive in at least three runs since Al Leiter in 1999.

Asked whether he was more proud of pitching or hitting, Niese said: "Both."

The Phillies had won five of their last six under Sandberg, yet looked punchless against Niese. Then again, neither team had a player in the starting lineup batting above .276.

Pitching a day after his 29th birthday, Kyle Kendrick (10-11) went six innings and allowed five runs, only one of them earned. He made a wild pickoff toss to second base, too.

Kendrick had won all three of his starts against the Mets this year. But he hasn't done well lately overall, going 1-5 in his last seven starts.

Niese toted a .162 career average to the batter's box in the third and earned a one-out walk on a 3-2 pitch. He moved up on a bunt by Eric Young Jr. and then took off on Daniel Murphy's single, easily beating an off-target throw home by right fielder John Mayberry Jr.

A wild throw by first baseman Kevin Frandsen helped the Mets load the bases in a four-run sixth. Travis d'Arnaud lofted a fly to medium-shallow center field, and Andrew Brown scored without a problem on Roger Bernadina's weak throw home.

Niese came up with two outs after an intentional walk and lined a bases-loaded double to the gap in left-center field. The three RBIs on that hit matched his combined total from the past three years.

"He just got lucky," Kendrick said.

Game notes

Phillies OF Domonic Brown was out with a sore right heel. He hasn't started since being pulled from Saturday's game. Sandberg said Brown "still feels it" but "seems to be getting better." ... The Mets said RHP Jeremy Hefner will soon have Tommy John surgery. He got a second opinion from noted orthopedist Dr. James Andrews before making the decision. ... Phillies LHP Cole Hamels (5-13, 3.62) starts Wednesday night vs. Mets RHP Daisuke Matsuzaka, hit hard by Detroit on Friday in his season debut. ... Kendrick made his 150th career start and is 64-53. He has not pitched past the sixth inning in his last eight starts. ... The Phillies were shut out for the 13th time; only Miami with 15 has been blanked more.

Copyright by STATS LLC and The Associated Press

More From 97.3 ESPN