SAN JOSE -- Timo Meier scored his first NHL hat trick for the San Jose Sharks in a 6-1 win against the Philadelphia Flyers at SAP Center on Saturday.
"Our line played great. They were a big part of my three goals," Meier said of linemates Evander Kane and Barclay Goodrow. "We played a hard, physical game. That's the way we've got to play."
[WATCH: All Flyers vs. Sharks highlights]
Mario Ferraro and Joel Kellman each scored his first NHL goal for the Sharks (17-20-3), who won for the first time in five games (1-3-1) to finish their seven-game homestand 2-4-1. Martin Jones made 26 saves, and Goodrow had three assists.
San Jose was coming off a 3-2 overtime loss to the Los Angeles Kings on Friday, when it blew a two-goal lead in the third period.
"Tonight, we found something that worked," Sharks captain Logan Couture said. "We have to build off this."
Video: PHI@SJS: Kellman scores first NHL goal on backhander
The Flyers (21-12-5) started their season-high six-game road trip with their first loss in five games. They are 8-10-1 on the road.
"It was evident from the start our execution was not there," Philadelphia coach Alain Vigneault said. "Even though I thought it got a little bit better early on in the third period, for most of the game, we had a really hard time making any plays, whether it be with the puck or on the forecheck without the puck."
Ferraro scored at 9:15 of the first period to give San Jose a 1-0 lead. It was the 21-year-old defenseman's 34th NHL game.
"Unbelievable experience," Ferraro said. "It only happens once."
Video: PHI@SJS: Ferraro buries first career NHL goal
Kellman made it 2-0 at 2:39 of the second period when he scored on a breakaway off a stretch pass from defenseman Radim Simek. It was the 25-year-old forward's fourth NHL game.
"It was a great pass," Kellman said. "I'm going to remember this for the rest of my life."
Ferraro and Kellman are the first two Sharks to each score his first NHL goal in the same game since Nov. 22, 2006, when Marc-Edouard Vlasic and Joe Pavelski did it against the Kings.
Meier scored for the first time in five games to make it 3-0 at 9:21 of the second.
Video: Timo Meier scores three against the Flyers
Ivan Provorov cut the San Jose lead to 3-1 with a power-play goal 51 seconds into the third period, but Meier scored his second of the game at 1:36 to make it 4-1.
"We play great at home, and on the road, for some reason, we just can't play the same way," Provorov said. "And we've got to figure out quick what's happening."
Meier completed the hat trick at 12:52 to give the Sharks a 5-1 lead.
"You've got to bounce back, that's how the business is," Meier said. "Tonight was pretty good, but I know I can do more. Same as our team, we have to take more steps."
Patrick Marleau scored at 17:20 for the 6-1 final. Joe Thornton had an assist to tie Adam Oates for seventh in NHL history (1,079).
Video: PHI@SJS: Marleau puts home Sorensen's rebound
Philadelphia goalie Carter Hart allowed six goals on 29 shots.
"We just played bad. We didn't win enough battles, and they were hungrier than us around the net," Flyers forward Kevin Hayes said. "I think that sums it up."
They said it
"I've got nothing to say about one player tonight, and that hasn't happened to me very often this year." -- Flyers coach Alain Vigneault
"We had a good meeting and called each other on the carpets talking about the details and why we're struggling." -- Sharks coach Bob Boughner on the team meeting that was held instead of a morning skate
Need to know
Sharks forward Melker Karlsson left the game at 12:22 of the first period after he was hit in the back of the helmet with a Provorov slap shot. Karlsson received stitches and is day to day, Boughner said. ... Philadelphia defenseman Justin Braun was minus-2 in 18:11 in his first game in San Jose since the Sharks traded him to the Flyers on June 19. He played his first nine NHL seasons for the Sharks. ... Flyers forward Jakub Voracek had his four-game point streak end (two goals, three assists). ... Ferraro had an assist on Kellman's goal for his first NHL multipoint game.
Flyers: At the Anaheim Ducks on Sunday (8:30 p.m. ET; ESPN+, PRIME, NBCSP, NHL.TV)
Sharks: At the Detroit Red Wings on Tuesday (7:30 p.m. ET; FS-D, NBCSCA, NHL.TV)
Video: Meier's hat trick propels Sharks to victory