Spencer will now step down at the end of the month, according to a spokesperson for the Georgia house speaker.

The Georgia lawmaker who yelled the N-word and bared his butt in an effort to turn ISIS terrorists "homosexual" on comedian Sacha Baron Cohen's new TV show is resigning at the end of the month.

Georgia representative Jason Spencer was humiliated by footage from "Who is America?", in which Cohen posed as a counterterrorism expert and taught Spencer a series of absurd self-defense techniques on camera.

Spencer had previously told The Washington Post: "I deeply regret the language I used," and claimed that Cohen had exploited his fear of terrorists to get him to embarrass himself.

Spencer planned to serve the remaining five months of his term, but cut that short as the backlash against his actions continued to grow.

He had already lost his primary, so there was never a possibility of his continuing in office beyond the next set of state elections.

Cohen, left, and Spencer on "Who is America?" Showtime

Spencer, a Republican, had faced calls to resign from figures including Speaker Ralston.

Ralston released a statement which said: "The actions and language used on this video are reprehensible. Representative Spencer has disgraced himself and should resign immediately. Georgia is better than this."

The segment included ridiculous advice, including distinguishing terrorists from non-terrorists by posing as a Chinese tourist and using a selfie stick to take upskirt photographs of people wearing a burqa or niqab.

In another "technique," Cohen prompted Spencer to scream the N-word to "attract attention" and save himself from being kidnapped. Spencer appeared to do this without hesitation.