Mayor Charles Wasko of West York, a small town in Pennsylvania, is resigning after being widely condemned for posting racist memes of President Barack Obama.

Following the controversy, the West York Council unanimously accepted his resignation on Monday night. The York Daily Record reports that his resignation goes into effect on October 21.

“The good news is we get to move on, and we’re going to deal with the topic at hand and continue to heal our community and build a better West York,” Council President Shawn Mauck told reporters.

Pennsylvania mayor posts racists memes on Facebook Show all 8 1 /8 Pennsylvania mayor posts racists memes on Facebook Pennsylvania mayor posts racists memes on Facebook Charles Wasko/Facebook Pennsylvania mayor posts racists memes on Facebook Charles Wasko/Facebook Pennsylvania mayor posts racists memes on Facebook Charles Wasko/Facebook Pennsylvania mayor posts racists memes on Facebook Charles Wasko/Facebook Pennsylvania mayor posts racists memes on Facebook Charles Wasko/Facebook Pennsylvania mayor posts racists memes on Facebook Charles Wasko/Facebook Pennsylvania mayor posts racists memes on Facebook Charles Wasko/Facebook Pennsylvania mayor posts racists memes on Facebook Charles Wasko/Facebook

Mr Mauck will fulfill the mayor’s duties for the rest of the term, which runs until December 21, 2017.

The town’s council approved a motion earlier this month to censure Mr Wasko and called for him to resign from his post. He was caught posting racist memes including Facebook posts that called Mr Obama and his family apes.