Two Brooklyn elementary school students have been arrested on suspicion of putting rat poison in a teacher’s water bottle, the police said on Wednesday.

The children, who are 9 and 12 and attend Public School 315 on Glenwood Road in Flatbush, were charged with reckless endangerment and assault.

The teacher, who drank from the poisoned water bottle, is recovering, officials said.

The incident occurred on Monday and was brought to light by a parent whose child had reported witnessing other students putting something in the teacher’s drink, according to the police.

The mother called the school and reported the episode. But by then, the teacher had already ingested the tainted water.