An intoxicated man is accused of urinating outside a Queens mosque Wednesday night during a prayer session, according to New York City police.

The disturbing incident unraveled at the Iman Mosque on Steinway Street in Astoria when witnesses say Omar Rivera "came in with a beer bottle in his hands" and was "clearly very intoxicated."

The mosque released a statement Thursday refuting claims Rivera shouted anti-Muslim slurs.

They said they believe the incident was an unintentional act of intoxication and wasn't directed against the mosque or Muslim community. In addition, they claimed Rivera was not charged with criminal trespass and was instead charged with pubic urination.

Two men in the prayer group were able to subdue the man and brought him into a back room before calling authorities.

Police took Rivera to the hospital for a psychiatric evaluation. Officials at the mosque said they are offering Rivera any help he may need.