A Brooklyn jury Tuesday convicted a mother of first-degree manslaughter in the drowning death of her 2-year-old daughter.

Mom Lin Li now faces up to 25 years in prison for the March 2016 slaying, which prosecutors said took place in the family’s Sunset Park bathtub.

The tot, named Melody, was killed as Li repeatedly submerged her in a container inside the tub as punishment for wetting herself, authorities said.

The 27-year-old mom was arrested after her other child told investigators “that’s how mommy punishes us,” cops said. Jurors also convicted her Tuesday on assault charges for holding her 4-year-old son’s head under water a day earlier.

“Melody was a defenseless child who depended on her mother to protect her,” Brooklyn District Attorney Eric Gonzalez said in a statement.

“It is extremely sad and inexplicable that she lost her life at the hands of the person who should have kept her safe. Nothing will bring Melody back, but with this verdict we make clear that we will bring to justice those who harm our children.”

Sentencing is scheduled for June 24.