CHICAGO -- When it comes to Game 7, Los Angeles truly is the king of the road.

Alec Martinez scored at 5:47 of overtime, and the Kings beat the Chicago Blackhawks 5-4 on Sunday night to advance to the Stanley Cup finals for the second time in three years.

The Kings became the first team in NHL history to play 21 games in the first three rounds and advance to the Stanley Cup finals, where they will host the New York Rangers in Game 1 on Wednesday night.

Los Angeles improved to 7-0 in elimination games and also became the first team to win three Game 7s on the road in one postseason.

"We've battled back so many times this year, and so many times in these playoffs, we said, 'Why not again today?' " said Justin Williams, who had a goal and an assist. "It was a total team effort, every single guy here giving everything they've got."

Martinez's shot went off Blackhawks defenseman Nick Leddy and fluttered over goalie Corey Crawford, stunning the sellout crowd at the United Center and leading to a wild on-ice celebration for Los Angeles. Leddy and Crawford were hunched over as the Kings gathered in a big huddle along the boards.

"I didn't really see it go in," Martinez said. "I know it went off a couple bodies. I just tried to get it through, and fortunately it went in."

Patrick Sharp scored twice for the Blackhawks, who blew a 2-0 lead. Brandon Saad had a goal and an assist, and Patrick Kane had two more assists. Jonathan Toews also scored for Chicago, and Crawford finished with 27 saves.

"This was a tough way to go down. This one's going to sting for a while," Toews said.

Blackhawks coach Joel Quenneville said, "I've lost some tough games, but nothing like tonight."

Kings coach Darryl Sutter moved to 7-3 in Game 7s, breaking a tie with Blackhawks adviser Scotty Bowman and Pat Burns for the NHL record for most coaching wins in Game 7s.

"You need everybody when you get to Game 7. You're not into the individual part of it," Sutter said.

Tyler Toffoli had a goal and an assist for the Kings, who once held a 3-1 lead in the series, only to see the Blackhawks come back to force Game 7. Jeff Carter scored his ninth playoff goal in the first, and Marian Gaborik had the tying goal midway through the third period.

The Kings also got 37 saves from Jonathan Quick in another resilient performance for Sutter's team. Los Angeles trailed the Sharks 3-0 in its first-round series and was down 3-2 to top-seeded Anaheim in the second round before rallying each time.

"It's just a great group to be part of," Quick said. "I feel very fortunate to be with the guys. Obviously our journey's not done yet, and we've got a lot of work here coming up. New York's an awesome team. They beat great teams, so they're battle-tested."