An Alabama judge once considered for a prominent federal appointment has resigned amid investigations of possible judicial and sexual improprieties, including allegations that he spanked male inmates in a private courthouse room.

The resignation of Circuit Judge Herman Thomas ends what was once viewed as one of Alabama’s most promising legal careers, although his legal problems continue.