Brent Burns scored two third-period goals, and the San Jose Sharks overcame Tyler Seguin's hat trick and rallied to beat the Dallas Stars 5-3 on Saturday night.

San Jose scored four goals in the third period — three against Dallas backup goalie Anders Lindback, who made 24 saves. Joe Thornton sealed the win with an empty-net goal at 19:18.

The Stars lost their seventh straight game (0-5-2). They had led 3-1 after two periods, with Seguin scoring all three goals. Seguin's sixth career hat trick, his second this season, came on his first three shots.

Patrick Marleau's power-play goal at 3:51 cut San Jose's deficit to 3-2. Burns tied it at 6:38 and added the go-ahead goal at 10:23.

Marleau and James Sheppard each had a goal and an assist. Logan Couture had three assists. Alex Stalock made 37 saves.

Seguin deflected Sergei Gonchar's drive from the top of the right circle past Stalock 8:03 into the game.

Seguin's second goal came at 10:26. Jamie Benn skated into the slot, turned and made a backhanded pass to Seguin, who scored with a wrist shot from the right circle.

The third goal was scored on the power play at 15:28 of the second period. The puck came to Seguin in the left circle for a one-timer past Stalock.

That came just 10 seconds after San Jose's Tyler Kennedy went to the penalty box, ending the Stars' 0 for 17 drought on power plays.

The Sharks scored at 17:14 of the first. Marc-Edouard Vlasic's shot from the left point went to Sheppard next to the net, and he put the puck behind Lindback.

Dallas outshot San Jose 12-8 in the first period and 12-9 in the second.

The Sharks pulled within 3-2 at 3:51 of the third. Marleau put in the rebound of Joe Pavelski's shot 11 seconds into a power play.

Burns tied it at 6:38. On a 2-on-1 break, he took a cross-ice pass from Couture and fired a shot from the left side before Lindback could get back.

NOTES: Lindback made his third start this season and first at home. ... The Sharks began a seven-game trip that will cover more than 7,500 miles. They were 5-2-2 in their first nine road games. . Kennedy was in his second game for San Jose after spending most of the season on a conditioning stint with Worcester of the AHL. . Seguin, Dallas' leader with 10 goals, hadn't scored in his previous four games. ... Jason Spezza's assist on Seguin's third goal was his 700th career point in his 700th game. ... Gonchar's assist was his first point this season. He has played only three games in his 20th NHL season after breaking an ankle during the preseason.