Police on Saturday arrested a fugitive suspected of fatally stabbing his girlfriend and two of her children — including his own infant daughter — in a hotel used as homeless housing on Staten Island, officials said.

Ending a four-day manhunt, Michael Sykes, 23, was taken into custody without incident in the vicinity of 31st Street in Astoria, Queens at about 3 p.m., said NYPD spokesman Stephen Davis.

“He was moving around,” Davis said of Sykes.

Sykes, who lives in Brooklyn, will be transported to Staten Island where he will be questioned by detectives, Davis said. Charges were pending.

Sykes was being sought since Wednesday when he allegedly stabbed to death Rebecca Cutler, 26, and her two children, 1-year-old Ziana Cutler and 4-month-old Maiyah Sykes in a room they were staying at in the Ramada Hotel in the Willowbrook section of Staten Island.

Cutler’s other daughter, 2-year-old Miracle, was also stabbed. She was in critical but stable condition Saturday night, according to police.

Cutler and the children were being lodged by the city in the hotel instead of in a homeless shelter, officials said.

Police believe Sykes may have become angry because Cutler was going to rekindle an old relationship she had with another boyfriend. The city medical examiner said all three victims died from stab wounds.

A police source said Cutler was stabbed 30 times. The wounds to Maiyah caused traumatic injuries to her liver, stomach, pancreas, kidneys and spleen, according to the autopsy report.

Sykes was seen on surveillance video taking the Staten Island ferry shortly after the Wednesday morning slayings, police said. He was spotted at a number of locations around the city, and investigators said he called relatives at some point and admitted to the killings.

Sykes was being held and it wasn’t clear if he had a lawyer who could comment on the case.