Democratic candidate Mary Peltola secured Alaska’s seat in the US Senate on Wednesday, defeating Republican Dan Sullivan in a closely contested race, according to the official vote count.

With 50.12% of the vote, Peltola increased the number of Democratic seats in the Senate to 56, compared with 44 for Republicans, settling the final race in the midterm elections, which saw a major defeat for President Donald Trump and his Republican Party.

In a statement following the announcement of her victory, Peltola said: “As the incoming senator, I will stand up to anyone to confront the dysfunctional system in Washington and deliver results for working families in Alaska.”

She added: “As an Alaskan, I have dedicated my life to serving our state. There is no greater honor than having the support of Alaskans in our fight to confront corporate greed, lower costs, and put Alaska first.”

The vote count in Alaska took two weeks to complete, but it gave Peltola a strong mandate. She received 144,302 votes, compared with 131,844 for Sullivan.

Peltola previously held the state’s only seat in the House of Representatives, becoming the first Alaska Native to serve in Congress. She will now become the first Alaska Native to enter the US Senate.

Alaska also elected a Democratic governor for the first time since 1998, after former state legislator Jonathan Kreiss-Tomkins defeated three Republican candidates, one of whom had received Trump’s endorsement.

The Associated Press has not yet called the race for Alaska’s seat in the US House of Representatives, where independent candidate Bill Hill is facing Republican Congressman Nick Begich.