Democrat Jonathan Kreiss-Tomkins has been elected governor of Alaska, becoming the first Democrat to win the office since 1998, according to The Associated Press. NBC News projected the outcome early Saturday, saying the former state lawmaker won a majority of the vote on a four-candidate ballot.

Kreiss-Tomkins defeated three Republicans, The Associated Press and NBC News reported, including Anchorage businesswoman Bernadette Wilson, who was endorsed by President Donald Trump. NBC News said Wilson finished a distant second and that the other Republicans on the ballot were former Anchorage Mayor Dave Bronson and former state Attorney General Treg Taylor. He will succeed term-limited Republican Gov. Mike Dunleavy, NBC News reported.

NBC News said the result flips the office from Republican control and that Democrats will hold 30 governorships next year after flipping six states. The Associated Press similarly reported that Democrats now control 30 governor’s offices.

At 37, Kreiss-Tomkins will be the youngest governor in Alaska history and, next year, the youngest sitting governor in the country, NBC News reported. Alaska sends the top four finishers in its primary to the general election, which uses ranked-choice voting; NBC News said Kreiss-Tomkins secured a majority on the first ballot, so the ranked-choice rounds were not needed.

Kreiss-Tomkins campaigned on boosting funding for public schools, lowering energy costs, expanding Medicaid, and protecting Alaska’s fisheries, NBC News reported. The Associated Press said he focused on affordability and full funding of public schools and emphasized a willingness to work across party lines. NBC News reported that Republican Sen. Lisa Murkowski endorsed him a week before Election Day and told NBC affiliate KTUU of Anchorage, “JKT is a young Alaskan with a view and a perspective that I think Alaska needs right now — a freshness of energy, a common-sense guy who has a known ability to be working together.”