Former state Rep. Kathleen Williams won the Democratic nomination for Montana’s at-large House seat Tuesday.

Williams will take on Republican Rep. Greg Gianforte, who’s running for his first full term in November after being elected in a May 2017 special election.

Williams won 33 percent of the vote, with 99 percent of precincts reporting, according to The Associated Press.

Williams, who is from Bozeman, got in the race later and raised less money than her primary opponents. She made her opposition to the National Rifle Association and support for an assault weapons ban part of her campaign.

President Donald Trump carried Montana by more than 20 points in 2016, when Gianforte lost a bid for governor. Six months later, Gianforte benefited from massive outside spending from GOP groups attacking Democratic nominee Rob Quist in the House race.