A Brooklyn teen, accompanied by his rabbi and a lawyer, surrendered today in the molestation of a youngster in the basement of a Borough Park synagogue.

Menachem Deutsch, 19, was charged with unlawful imprisonment and child endangerment in the June 22 attack, authorities said.

Deutsch, dressed in traditional Hasidic attire, allegedly lured a 12-year-old boy walking home from school into Simcha Hall, a basement event space located inside a synagogue at 15th Avenue and 50th Street, authorities said.

Once inside, Deutsch brought the boy into a bathroom and allegedly groped and molested the child over the course of an hour.