A California mayor quit his job Sunday after people grew outraged over a Facebook post he wrote blaming Black Lives Matter for various police officer killings.

Piedmont Mayor Jeff Wieler apologized for his Facebook posts, which were unearthed by a resident who read them out loud during a city council meeting last week, reports SF Gate.

“I’m not sure people understand that I want to put this embarrassing and painful episode behind me, and regain some respect. I apologize deeply for the pain I’ve caused. I’ve learned a great deal from this, and experience can be a painful teacher. Going forward, I will restrict my Facebook posts to pictures of our pets and vacation pictures. Fortunately, I’ve never tweeted!” Wieler wrote in another Facebook post.

Citizen Conna McCarthy read Wieler’s Facebook posts during a city council meeting Aug. 21. Wieler’s posts included accusing Black Lives Matter of encouraging cop killings and referring to transgender people as “mentally ill.” Another post said that Democrats were the “plantation slave masters of today.”

“I began receiving emails from constituents approximately every 10 or 15 minutes, the vast majority of which were calling for his replacement as mayor,” Piedmont City Councilmember Tim Rood said.

The council set a meeting for Monday to discuss whether to fire Wieler, but he resigned before they could do so.

“After a quarter century of volunteering for Piedmont in various roles, I regret the impact this has had upon the City I love and the men and women in the staff who do such a find job for our citizens. My thanks to them and you for the support I have been shown throughout my time on the City Council and as Mayor,” Wieler wrote.

Follow Amber on Twitter

Send tips to amber@dailycallernewsfoundation.org.

Content created by The Daily Caller News Foundation is available without charge to any eligible news publisher that can provide a large audience. For licensing opportunities of our original content, please contact licensing@dailycallernewsfoundation.org.