A two-year-old boy died in a Bronx public library on Sunday after possibly choking on a piece of candy, sources said.

The toddler was with his older brother at Bronx Library Center in Fordham Manor when he had trouble breathing at around 3 p.m., according to law enforcement sources.

The boy’s brother said he was vomiting and could not breath. The child may have choked on a piece of candy, sources said.

He was taken to St. Barnabas Hospital, where he was declared dead.

The Medical Examiner would determine the official cause of death.