The Kentucky county clerk who gained notoriety for refusing to sign the marriage licenses of gay couples lost her re-election bid Tuesday to a Democratic opponent.

Republican Kim Davis, who was jailed for five days in 2015 for refusing to issue same-sex marriage licenses, lost her seat as Rowan County Clerk to Democrat Elwood Caudill Jr. by 700 votes, according to the Lexington Herald-Leader.

Caudill ran in his Democratic primary against one of the people denied a marriage license by Davis, David Ernold, who raised more than $200,000 in campaign donations.

After his loss, Ermold declined to throw his support behind Caudill, calling him a homophobe.

But Caudill denied the allegation and promised to treat everybody equally in his role as clerk.

Following her refusal to issue the licences, citing her religious beliefs, Davis rose to prominence among Republicans, earning recognition from former Arkansas Gov. Mike Huckabee and Sen. Ted Cruz (R-TX). She also attended President Trump’s first joint address to Congress in 2017.