Senator Dan S. Sullivan conceded the Alaska Senate race to Mary Peltola on Tuesday. He said, "I accept the results certified by the Division of Elections." Peltola won by over four percentage points after a legal battle over ballot names. This result helped Democrats reach 56 seats in the Senate.

The Republican conceded five days after the Trump administration gave up on a long-shot lawsuit intended to potentially block certification of the race.

Senator Dan S. Sullivan, a second-term Republican, conceded defeat to Mary Peltola, his Democratic challenger, on Tuesday, a week after The Associated Press called the race.

Mr. Sullivan's concession also came five days after the Trump administration abandoned a highly unusual lawsuit it had filed in a bid to prevent certification of the election if Mr. Sullivan lost narrowly. Ms. Peltola beat Mr. Sullivan by more than four percentage points.

The Justice Department had objected to the inclusion of a candidate with a name similar to the Republican incumbent's on the ballot. President Trump said he had ordered the complaint, which was filed 11 days before Election Day.

Mr. Sullivan said in a statement on Tuesday that Alaskans deserved "confidence in the integrity of their elections" and that he expected that federal and state investigations would resolve any lingering questions about his race.

"As I've always said I would, and out of respect for the people of Alaska and our democratic process, I accept the results certified by the Division of Elections," Mr. Sullivan added.

Democrats recruited Dan J. Sullivan onto the ballot in an effort to dilute Senator Sullivan's vote share. Dan J. Sullivan received enough votes in the state's nonpartisan primary to appear in Alaska's ranked-choice general election.

It is not illegal for political parties to try to stack ballots. Ms. Peltola denied knowing about the ballot-stacking effort.

Ms. Peltola's margin of victory was larger than the combined vote share commanded by Dan J. Sullivan and the fourth candidate on the ballot, Gerald L. Heikes, a Republican. And a New York Times analysis found that among voters who picked Dan J. Sullivan as their first choice, more selected Ms. Peltola as their second choice than picked Senator Sullivan.

By June, the Alaska courts had decided to allow Dan J. Sullivan to run, citing state law that favors candidate eligibility.

The victory by Ms. Peltola, a centrist whose campaign slogan was "Fish, Family, Freedom," was part of sweeping Democratic gains in the midterm elections.

Democrats, lifted by voter anger about high prices and frustration with the Trump administration, won 56 Senate seats. The Alaska race was the last to be called.

In his statement, Mr. Sullivan said his 12 years in the Senate were the "honor of a lifetime."

"I am proud of how we conducted ourselves during this campaign," he added, "and I am thankful to the countless Alaskans who helped us accomplish so much for our state."