A Buffalo man is accused of severely beating a friend’s 3-year-old son and pulling out some of the boy’s hair, Buffalo police said Monday.

Anthony Ortiz, 22, was arrested late last week after an extended investigation. He remains in custody at the Erie County Holding Center on a second-degree assault charge.

Ortiz is accused of punching the boy in the stomach and pulling a large chunk of hair out of the child’s head Dec. 7at a Sandrock Road residence, according to a police report.