A North Carolina mother was sentenced to seven days in jail after she baptized her daughter.
The punishment comes after mother Kendra Stocks and father Paul Schaaf fought a custody battle over their child, reports WSOC-TV.
A court granted Schaaf, a practicing Catholic, the final authority on all legal custody decisions, including those concerning religion.
The court warned both parents they would face jail time if found in contempt.
In such cases, an individual can either be arrested, fined, or both if they improperly challenge or ignore the court's authority.
The next day, Schaaf found out through Facebook that Stocks had baptized their daughter anyway.
"The mother has acted selfishly by depriving the father of the ability to be present at an event that was extraordinarily important to him," court documents stated.
News of the judge's sentence has since sparked controversy on the internet.
"You got to be joking," wrote one person in News Break's comments section. "These are the judges that we have before us? this world is so screwed. these judges act like they are the law. they don't uphold the law, they abuse their power. This sickens me."
"[He] is violating right to religion laws, violating women rights laws, wrongful prosecution laws, false imprisonment laws, and false arrest laws," commented one person on Facebook.
"It's about him power tripping on a woman and putting her in her place," they added. It has nothing to with baptism in which its out of the Judicial Systems Jurisdiction. It should have been thrown out of court."
It's just one of the many times in recent weeks a judge's ruling in a religion-related case has provoked controversy.
On Feb. 5, a California judge ruled a baker was legally within her rights when she refused to make a wedding cake for a same-sex marriage, reports the Chicago Tribune.
"A wedding cake is not just a cake in a Free Speech analysis," wrote Superior Court Judge David R. Lampe. "It is an artistic expression by the person making it that is to be used traditionally as a centerpiece in the celebration of a marriage. There could not be a greater form of expressive conduct."
The case captured national attention after Eileen and Mireya Rodriquez-Del Rio filed a complaint after Tastries bakery owner Cathy Miller refused to make their cake.
"Miller is a practicing Christian and considers herself a woman of deep faith," the opinion said, adding that she believes same-sex marriages "violate a Biblical command that marriage is only between a man and a woman."