A “dangerous” arsonist was busted for setting three separate fires inside a dormitory of Manhattan’s Yeshiva University while students were sleeping Friday, FDNY Commissioner Daniel Nigro said.

Peter Weyand, 33, was captured on surveillance footage breaking into Schottenstein Residence Hall at Yeshiva University on East 29th Street — and FDNY officials say he then used matches intended for a Hanukkah menorah to start the blazes.

Firefighters were called to the building at 3:50 a.m. for reports of a fire on the first floor and units arrived within five minutes.

The blazes were quickly brought under control and there were no injuries to any civilians or FDNY members.

Weyand was arrested by Fire Marshals and charged with arson, burglary with criminal intent, reckless endangerment of property, criminal mischief, criminal trespass and aggravated harassment.

“Attacking any religious institution is a serious crime and we have zero tolerance for acts of arson in the city,” Nigro said in a statement.

“Thanks to the thorough investigative work of our Fire Marshals, a dangerous individual has been quickly apprehended.”