A New York rabbi — pontoon boating with his family at an Orange County lake — died over the weekend while trying to save two kids from drowning, cops said.

Rabbi David Traub, 38, of Chestnut Ridge, managed to save both of the children, who police described as his relatives, but was unable to make it back onto the boat.

“He entered the water to attempt to assist the two youths,” said Detective D. Jones of the Greenwood Lake Police Department.

“We believe they are all related,” he told The Post.

The children had jumped into Greenwood Lake from the pontoon boat around 5:20 p.m. Sunday and became “distressed,” cops said.

Traub — who was reportedly head of school and synagogue at Bais Medrosh Elyon in Monsey — went in after them and eventually lost the energy to stay afloat. Police said he “submerged and never resurfaced.”

“He did not come up from the water once he had gone down,” said Jones.

Authorities conducted a search for Traub’s body but had to call it off due to severe weather. They resumed Monday and were able to find him around 11 a.m.

Officials with Chaverim of Rockland, a local nonprofit first responder group that aided in the search, told The Journal News that Traub’s funeral was held later in the day. His body will be transported to Israel for the burial.