Moore was arrested in November -- one month after taking office as mayor -- after allegedly selling a 30-milligram oxycodone pill to an undercover informant for $20.
He pleaded not guilty and has been awaiting trial in jail ever since.
Florida Gov. Rick Scott immediately suspended Moore after his arrest, but the mayor submitted his official letter of resignation Tuesday, CNN reported. The resignation came one month after an audit found 31 violations of the city's charter, and violations of federal codes and laws.
Moore's letter was short and sweet:
"I, Barry Layne Moore, being of sound mind and body, ask that you would please accept this letter as notification that I am leaving my position with the city of Hampton, effective immediately."