A New York City corrections officer allegedly failed to take care of his own children and dog – after police discovered his kids home alone and pet emaciated in a cage.

Ronald McDonagh, 48, was arrested Sunday morning after police received a 911 call about a 4-year-old girl and 8-year-old boy left unattended in their East Harlem apartment.

When police arrived, the father was outside the building. He acknowledged he’d left the kids unattended.

Inside, cops founds the kids and the dog, which was lying in its own urine and severely malnourished, police sources said. The apartment was filthy, sources said.

McDonagh was charged with two counts of acting in a manner injurious to a child, as well as torture and neglect of the animal.