The abuse began when the girl was 12 years old, prosecutors in State Supreme Court in Brooklyn said on Monday. She was sent to a prominent man in her ultra-Orthodox Jewish community for counseling, and prosecutors said the man sexually molested her over the next three years.

But lawyers defending the man, Nechemya Weberman, 54, of Williamsburg, Brooklyn, told a far different story during the opening arguments of his trial. The girl, a defense lawyer told the jury, had hatched the sordid tale of abuse as an act of revenge against Mr. Weberman and against a religious community she found stifling and rulebound.

As proceedings began during the trial of Mr. Weberman, who is accused of 88 counts of sexual abuse of a minor, it became clear that the community itself, as well as Mr. Weberman, would undergo scrutiny during what is expected to be an emotional week of sexually explicit and culturally intricate testimony.

Both the prosecution and the defense informed the jury that the Satmar Hasidic community, to which Mr. Weberman and the girl belonged, was so rigid that questions from a young girl about something as simple as the proper length of a skirt could lead to mandatory counseling, and even expulsion from school. The accuser in this case, both sides said, was just that kind of girl: a free spirit whose questioning and challenges to authority landed her in trouble.