FILE - In this Sept. 8, 2015, file photo, Rowan County Clerk Kim Davis, with Republican presidential candidate Mike Huckabee at her side, greets the crowd after being released from the Carter County Detention Center, in Grayson, Ky. Davis, hauled to jail for defying a series of federal court orders and refusing to issue marriage licenses to same-sex couples, filed a 40-page court document Thursday, Sept. 24, blaming Kentucky governor Steve Beshear for all her legal woes. Photo: (AP Photo/Timothy D. Easley, File)

FILE - In this Sept. 8, 2015, file photo, Rowan County Clerk Kim Davis, with Republican presidential candidate Mike Huckabee at her side, greets the crowd after being released from the Carter County Detention Center, in Grayson, Ky. Davis, hauled to jail for defying a series of federal court orders and refusing to issue marriage licenses to same-sex couples, filed a 40-page court document Thursday, Sept. 24, blaming Kentucky governor Steve Beshear for all her legal woes. Photo: (AP Photo/Timothy D. Easley, File)

Kentucky county clerk Kim Davis, who spent several days in jail for refusing to issue marriage licenses to same-sex couples, lost her bid for reelection.

Davis, who switched to the Republican Party before the election, faced Democrat Elwood Caudill. Caudill won 54% of the approximately 7,800 votes cast in the race.

Davis infamously turned away David Ermold and his fiancé, David Moore, in 2015 when they applied for a marriage license and spent time in jail for refusing to do her job. Ermold announced he would run against Davis, but lost the primary race to Ermold.

Related: Vatican admits Pope lied about meeting anti-gay clerk Kim Davis. He knew who she was.

Ermold alleged Caudill was worse than Davis and said he hoped his former nemesis would win reelection. He said that Caudill is also homophobic and uses anti-gay slurs while courting LGBTQ voters.

“I just want him to lose. I would rather Kim Davis win,” Ermold told the Associated Press in September.

“At least Kim Davis has the integrity to stand up for what she believes in. Elwood Caudill is a liar.”

Editor’s Note: We originally reported Davis won reelection based off reversed numbers displayed on the New York Times website. We regret the mistake.