A north Florida mayor who is jailed on drug charges has resigned from office.

The Gainesville Sun reports Hampton Mayor Barry Layne Moore submitted his resignation on Tuesday. He's being held in the Bradford County Jail on allegations of selling oxycodone.

Moore was suspended from office in November. He has not posted $45,000 bail.

Officials say Moore asked city councilman Bill Goodge, who is a sergeant at the jail, to help him with the resignation.

Goodge says Moore didn't want to "embarrass" the city any more.

The decision allows the city to move forward with an election. Acting Mayor Myrtice McCullough has been running the city since November.

Moore's arrest came just weeks after he was elected. The city has 500 residents.