Mary Peltola won the Alaska Senate race against Dan S. Sullivan late on Tuesday. She secured a 56th seat for her party by focusing on local issues like high fuel costs. "They just hammered away," said lobbyist Ashley Reed. Peltola traveled to tiny rural villages to reach many voters.

Beleaguered by high fuel costs and wary of overfishing, Alaskans were drawn to the Democrat's hyperlocal pitch.

In the end, Mary Peltola may not have needed two Dan Sullivans on the ballot after all.

A final batch of votes pushed Ms. Peltola, the Democratic former congresswoman, across the threshold to victory against Senator Dan S. Sullivan of Alaska late on Tuesday, according to The Associated Press. Ms. Peltola's victory secured a 56th seat in the Senate for her party in a midterm election that Democrats swept.

She won by over 12,000 votes, more than the roughly 4,700 earned by Daniel J. Sullivan, a retired teacher whom Democratic operatives had recruited into the race in an apparent effort to confuse Republicans and siphon their votes from an incumbent with the same name.

Around the country, the presence of that other Dan Sullivan on the ballot dominated coverage of the race. But in Alaska, Ms. Peltola laid the groundwork for a dominant victory over the incumbent through more conventional means, attacking him on the cost of living and positioning herself as a working-class champion.

Like other Democrats who flipped G.O.P. seats this month, Ms. Peltola capitalized on voter anger over high gas and diesel fuel costs, the war in Iran and an unpopular president. But in Alaska, where regional matters and politicians' personal brands play an outsize role, Ms. Peltola's win also reflected her success running as a broadly palatable challenger steeped in local concerns. By the end, seemingly everyone knew Ms. Peltola's campaign slogan: "Fish, Family, Freedom."

"They had a good strategy," said Ashley Reed, a nonpartisan state lobbyist who, like many supporters of the incumbent, begrudgingly acknowledged that Ms. Peltola's attacks had hit home. "They just hammered away, and one of the things that worked real well is the Sullivan campaign did not counter some really harsh claims."

While the senator focused on communities in the Mat-Su Valley and the Kenai Peninsula, conservative areas outside Anchorage, Ms. Peltola was trekking to tiny rural villages in far-flung parts of the state, many of which are reachable only by boat or small plane. She flew in and out of distant towns for days in a row, covering thousands of miles. She reached some of them by snowmobile.