A Michigan mom was sent to the slammer for repeatedly refusing to vaccinate her son, according to local reports.

Rebecca Bredow, 40, was sentenced to a week in jail Wednesday for contempt of court—closing a year-long legal battle between her and her ex-husband over the vaccination of their 9-year-old, Detroit News reported.

“I couldn’t bring myself to do it,” the mom of two said in court.

The anti-vaxxer told Judge Karen McDonald that immunizing the boy went against her religious beliefs and that she was a “passionate mother who cares deeply about her children, their health and their well-being.”

The court ordered the vaccination in October 2016. Last week, the judge warned Bredow she’d be sent to jail if she didn’t comply within seven days — and that her son would be vaccinated anyway.

“You agreed in a consent order to vaccinate your child,” the judge said. “I understand you love your children, but what I don’t think you understand is that your son has two parents and dad gets a say.”

Bredow argued her ex-husband, James Horne, had known about her objection to vaccinations for a long time and was making an issue of it now because she’d been trying to collect back child support, the Detroit Free Press reported.

The dad’s lawyer said neither parents practiced an organized religion and that the objection was phony and “a convenient lie.”

McDonald placed the boy in temporary custody of his dad.