A Wisconsin Republican dropped out of the race for a seat on the state assembly on Tuesday after he admitted that he made offensive comments about gay and black people on social media, according to The Gazette.

Jacob Dorsey, a 19-year-old candidate challenging Democratic state Rep. Deb Kolste, apologized last week for referring to gay people as “fags” in a tweet.

In December 2013, Dorsey tweeted “fags need 2 leave my favorite state alone” after a judge decided not to stay the ruling that struck down Utah’s gay marriage ban, according to the NOManiancs blog.

Now, Dorsey admitted that he made other offensive comments on Twitter and YouTube, which were discovered by the NOManiacs blog.

In comments on YouTube videos, he used the words “fags” and “niggers.” In one comment he said “Niggers trash cars. I’m not selling my town car to one…” according to NOManiac’s screenshots, which were also posted on the Janesville Community Facebook page.

He also said “fuck Abraham Lincoln” and “I hate Obama and the the [sic] national urban bastards” in other comments.

Dorsey withdrew from the race and will return to school at Brigham Young University-Idaho, from which he took a semester off to campaign for state assembly.

“I have decided to withdraw from the race due to insensitive remarks that have surfaced from years past,” he said in a statement to The Gazette. “This race has been extremely hard on my family and myself.”

In a statement to The Gazette, the Republican Party of Rock County denounced Dorsey’s remarks and said they requested that the party’s contribution to his campaign be returned.

“His comments have no place in our political discourse,” the party said in the statement. “The party was unaware of his comments when he announced his candidacy in May and when it provided a financial contribution to his campaign.”

Correction: This post originally stated that NOManiacs is a National Organization for Marriage blog. The blog‘s mission is “exposing NOM and its supporters.”

Photo via a cached version of Dorsey’s website.