A teacher at a ritzy Manhattan prep school met a student for a date after his last day there — and then got the underage girl drunk and had sex with her in the bathroom of an East Village nightclub, prosecutors charged Thursday.

David Azurmendi, 34, who taught health at the $43,000-a-year Léman Manhattan Preparatory School in the Financial District, was charged with third-degree rape ​for the alleged hookup.

David AzurmendiGregory P. Mango

On June 19, his last day at Léman, the married father of two joined the 16-year-old for drinks at the Lit Lounge on Second Avenue​. ​He and the girl headed to the bar’s bathroom, where the two had sex, according to a criminal complaint.

Azurmendi later confessed to having a sexual relationship with the teen, but insisted that it was consensual, sources said.

He was released on $5,000 bail after his lawyer, Aaron Wallenstein, called him a “highly respected member of the education community.”

“Whether this happened or not, this happened in a place where you’d expect people to be 21 years old and this was not somebody my client knew as a student,” Wallenstein said.