GRAYSON, Ky. (AP) — The Kentucky county clerk who has refused to issue marriage licenses because of her religious beliefs will be released from jail, where she’s been held for several days on a contempt of court charge.

U.S. District Judge David Bunning lifted the contempt order Tuesday and ordered Rowan County clerk Kim Davis released.

Bunning’s ruling says he’s satisfied that Davis’ office is complying with court orders to grant marriage licenses, and he ordered her not to interfere with that business. In Davis’ absence, deputy clerks have been issuing the licenses. Five of the six deputies told Bunning in court that they would agree to do so, although some were reluctant and cited religious beliefs. Bunning’s ruling requests updates on the five deputy clerks’ compliance from their lawyers every 14 days.

Bunning sent Davis to jail on Thursday after she refused to comply with his order. She had refused to grant licenses to any couples, gay or straight, since shortly after the U.S. Supreme Court effectively legalized gay marriage.

Outside the jail where Davis is held, word spread slowly through a crowd of supporters Tuesday afternoon. Some said they couldn’t believe the news. Police officers and others gathered at the jail’s front door.