MADISON, Wis. – A federal judge in Wisconsin ruled the National Day of Prayer unconstitutional Thursday, saying the day amounts to a call for religious action.

U.S. District Judge Barbara Crabb wrote that the government can no more enact laws supporting a day of prayer than it can encourage citizens to fast during Ramadan, attend a synagogue or practice magic.

“In fact, it is because the nature of prayer is so personal and can have such a powerful effect on a community that the government may not use its authority to try to influence an individual’s decision whether and when to pray,” Crabb wrote.

Congress established the day in 1952 and in 1988 set the first Thursday in May as the day for presidents to issue proclamations asking Americans to pray. The Freedom From Religion Foundation, a Madison-based group of atheists and agnostics, filed a lawsuit against the federal government in 2008 arguing the day violated the separation of church and state.

President Obama’s administration has countered that the statute simply acknowledges the role of religion in the United States. Obama issued a proclamation last year but did not hold public events with religious leaders as former President George W. Bush had done.

Crabb wrote that her ruling shouldn’t be considered a bar to any prayer days until all appeals are exhausted. U.S. Justice Department attorneys who represented the federal government in the case were reviewing the ruling, agency spokesman Charles Miller said.

Obama spokesman Matt Lehrich said in an e-mail to The Associated Press the president still plans to issue a proclamation for the next prayer day.

The American Center for Law and Justice, which filed a friend of the court brief supporting the government on behalf of 31 members of Congress, called Crabb’s ruling flawed and vowed to back an appeal if one is filed.

“It is unfortunate that this court failed to understand that a day set aside for prayer for the country represents a time-honored tradition that embraces the First Amendment, not violates it,” ACLJ Chief Counsel Jay Sekulow said in a statement.

The Alliance Defense Fund, an Arizona-based group of Christian lawyers, issued a statement saying Crabb’s ruling undermines American tradition dating back to the nation’s birth.

Crabb wrote that her ruling was not a judgment on the value of prayer. “In this instance, the government has taken sides on a matter that must be left to individual conscience,” she wrote.