DENVER (AP) — A Democratic state lawmaker on Friday accused Republican Attorney General Cynthia Coffman of acting “at the behest of oil and gas companies” when she threatened to sue Boulder County over its moratorium on oil and gas drilling.

Sen. Matt Jones, who represents part of Boulder County, made the statement during a debate on the Senate floor. He didn’t elaborate.

Neither he nor Coffman’s spokeswoman immediately responded to requests for comment.

Coffman set a Friday deadline for the county to rescind the moratorium, saying it contradicts a Colorado Supreme Court ruling that only the state can regulate the industry.

The heavily Democratic county hasn’t budged. County Attorney Ben Pearlman said Thursday the county is prepared to defend the moratorium in court. He said he believes the measure is legal because its purpose is to give the county time to revise its outdated regulations.

“We’ve been working diligently on that,” he said.

Coffman said the county is wrong.

“Plain and simple, Boulder County is violating state law and has left my office with no option other than to enforce the law,” she said in a written statement. “It would be patently unfair for some local governments to be forced to comply with state law while allowing Boulder to continue with its illegal moratorium.”

Boulder has had a moratorium in place since 2012, extending it several times. Commissioners voted in December to extend it until at least May 1.

Regulating the energy industry is a contentious issue in Colorado, where rich oil and gas fields sometimes overlap with growing communities.

In May, the state Supreme Court overturned restrictions imposed by Longmont and Fort Collins, saying local governments have no authority to regulate the industry. That was the ruling Coffman cited when she warned Boulder.

Pearlman said that ruling left room for a moratorium like Boulder’s, intended to give officials time to revises their rules.

Sam Mamet, executive director of the Colorado Municipal League, said a moratorium is “a commonly used practice.”

“If it goes to court, I think we’d be on the side of Boulder County” and file a friend-of-the-court brief, Mamet said. But he said he hopes Coffman and the county can reach an agreement.

Previous attorneys general have sued local governments over actions they considered illegal. Republican Gale Norton, who held the office in the 1990s, said she filed several lawsuits over local oil and gas restrictions.

“Consistently over the last 20 years or so, local governments have lost every one of those lawsuits,” she said.

By DAN ELLIOTT, Associated Press

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)