An undercover investigation by an interdepartmental task force ended in the Wednesday night arrest of the mayor of a Northern Kentucky town after he allegedly sold weed to an informant—near an elementary school.

Olive Hill mayor Danny Sparks was busted selling marijuana to an undercover in a parking lot behind the school. Authorities say another man who had a "personal relationship" with Sparks was detained as well.

Sparks initially called his arrest a "mistake," but later issued a statement saying that he would resign from his position, effective immediately. 

"I hope that everyone will understand that I have always tried to do the very best for Olive Hill and hope that the people will understand that I will always try to continue to help in any way possible to better this City regardless of what position I may serve," Sparks said in his statement. "What happened tonight is something I have never done before and deeply regret it and hope to move on."

Sparks was charged with trafficking marijuana within 1,000 feet of a school. There's no way he could be the "pot dealing mayor" and still be a respected public figure, unless he just completed succumbed to the underworld.

RELATED: The Most Ratchet Stories of MarchAprilMayJuneJulyAugust and September.

[via Gawker]