The Kansas Supreme Court has ruled that a grand jury must be convened to investigate whether Secretary of State Kris Kobach intentionally botched voter registration in the state in the 2016 elections. Kobach, the Republican candidate for Kansas governor in the upcoming 2018 midterms, is a key ally of President Donald Trump on voter fraud and headed the president’s since-disbanded election fraud commission.

This all stems from a petition filed in 2016 by Lawrence, Kansas, resident Steven Davis, who made an unsuccessful run for the Kansas House that year and again in 2018. He asked for a probe into whether Kobach and others in his office engaged in “destroying, obstructing, or failing to deliver online voter registration.”

According to the Lawrence Journal-World, the 2016 petition also calls for an investigation into whether the office had fake or altered registration books that prevented people from voting or was “grossly neglectful with respect to their election duties.”

Kobach dismissed the allegations as politically motivated, and his office has said that they’re related to a short time in 2016 when certain online voter registrations malfunctioned.

Since then, the request has been caught up in a judicial back-and-forth: Initially, a county judge dismissed Davis’s petition, but in June, the Kansas Court of Appeals reversed the decision. Kobach took it to the Kansas Supreme Court.

On Friday, the Lawrence Journal-World reported that the state’s highest court in a one-page order denied Kobach’s request to review the previous decision, meaning a grand jury will now be convened. The court didn’t explain the ruling.

The timing for Kobach isn’t great: He narrowly defeated Kansas Gov. Jeff Colyer in the gubernatorial Republican primary in August, and he’ll face Democrat Laura Kelly and independent candidate Greg Orman in November. The first poll on the Kobach-Kelly matchup released this week shows a close race. Trump endorsed Kobach in the Republican primary.

Kris Kobach has a sketchy history on voting rights

Kobach, 52, is a controversial figure, and his record on race, immigration, and voting rights has drawn national attention.

In August, two Republican consultants accused the Kobach campaign of employing three alleged white nationalists. Before that, in 2017, he cited a man linked to Holocaust denial and white supremacy in a Breitbart column, and he once attended a writers workshop for a publishing house that releases white nationalist material. He is an anti-immigration hardliner and has made illegal immigration a centerpiece of his gubernatorial campaign.

But it is perhaps his outspokenness on voter fraud for which Kobach is best known.

Since 2011, he has persuaded the Kansas legislature to enact what the New York Times described as “the nation’s most rigorous voting restrictions and to give him special authority to enforce them.” A federal judge in June struck down a restrictive voting law Kobach had championed that required people to show an identification document from an approved list, such as a birth certificate or passport, to register to vote.

Kobach helped lead Trump’s since-disbanded electoral fraud commission, which was established after the president’s claims that there was mass voter fraud in 2016. (Voter fraud is very rare, and there is no evidence of widespread voter fraud in the US.) More than 40 states rejected the commission’s voter registration data request in 2017, including Kobach’s state.

The commission eventually determined there was no evidence to back up Trump’s voter fraud claims and disbanded. But as Vox’s Ella Nilsen recently explained, questions about its activities, which Kobach and Vice President Mike Pence headed, continue: