(Reuters) – A gay man who was denied a marriage license in Kentucky two years ago by a county clerk who refused to issue licenses for same-sex marriages will run to unseat her next year, he said on Wednesday.

FILE PHOTO: Kentucky’s Rowan County Clerk Kim Davis, who was briefly jailed for refusing to issue marriage licenses to same-sex couples, makes remarks after receiving the “Cost of Discipleship” award at a Family Research Council conference in Washington September 25, 2015. REUTERS/James Lawler Duggan/File Photo

David Ermold, of Morehead, Kentucky, announced his candidacy as a Democrat against Rowan County Clerk Kim Davis, who drew worldwide attention when she refused to grant the licenses to same-sex couples, citing Apostolic Christian beliefs.

Ermold and his partner were one of the four couples who sued Davis.

“We need to restore the integrity of that office,” Ermold said in a phone interview with Reuters after his campaign announcement on Facebook. “I wasn’t treated fairly myself.”

Davis, who said last month she would run for re-election in 2018, could not immediately be reached to comment. Her attorney at Liberty Counsel also could not be reached.

Davis spent five days in jail in September 2015 after refusing a court order to issue marriage licenses following the Supreme Court’s decision legalizing same-sex marriage.

FILE PHOTO: Kim Davis, the Kentucky county clerk who refused to issue same-sex marriage licenses, addresses the media just before the doors are opened to the Rowan County Clerk’s Office in Morehead, Kentucky, U.S. on September 14, 2015. REUTERS/Chris Tilley/File Photo

Her case in 2015 drew hundreds of protesters and supporters to her office in Morehead, in rural eastern Kentucky. While she was in jail, then-Republican presidential candidates Mike Huckabee and Ted Cruz visited her.

Less than a month after she was released from jail, Davis, who won election to the office in 2014 as a Democrat, switched her affiliation to the Republican Party.

After her case, Kentucky lawmakers removed all county clerks’ names from the state marriage license form.

Ermold and David Moore got a license and were wed on Sept. 26, 2015, Ermold said. The couple had a wedding ceremony the following month.

“We need someone who is going to stay focused on our community instead of focusing on the interests or agendas of outside organizations and politicians,” Ermold said.

In October 2017, Davis and a Liberty Counsel representative traveled to Romania, where those opposing same-sex marriage sought a referendum on the issue, to meet with religious and political leaders.