Escaped inmates Hossein Nayeri and Jonathan Tieu have been caught and are in the custody of the San Francisco Police Department, Orange County Sheriff Sandra Hutchens said.

A tweet on the Sheriff’s Department Twitter account said the pair were transported back to Orange County:

#OCSDPIO: Jail escapees Tieu & Nayeri in OC custody. Both arrived to OCJ at 1am this morning. VIDEO: https://t.co/swU6tq3q7G #ocjailescape — OC Sheriff, CA (@OCSD) January 31, 2016

http://platform.twitter.com/widgets.js

A man in a Whole Foods parking lot in San Francisco recognized one of the fugitives and the white van he had seen on television that the duo were suspected of living in.

He called police at 8:20 a.m., and they swooped in quickly and caught two fugitives who had escaped from the Orange County Men’s Central Jail, ending an eight-day manhunt that stretched from Santa Ana to San Jose to San Francisco.

A smiling Hutchens announced the details of the capture Saturday. She said Hossein Nayeri, 37, and wanted on kidnap and torture charges, was caught after a short foot chase. Jonathan Tieu, 20, wanted on murder charges, was caught inside the van.

Ammunition was found in the van, but no weapons.

Nayeri and Tieu were booked at the department’s Park District station and then sent to the San Francisco County Jail, where Orange County Sheriff’s Department investigators will be interviewing them.

The two fugitives will be transported to Orange County and they will be housed differently than they had previously, Hutchens said. They will not be housed together.

On Friday, Bac Duong, the third inmate who had escaped, turned himself in at an auto parts store in Santa Ana. Duong, 43, wanted for attempted murder, had cooperated with investigators after he was taken into custody, Hutchens said.

On Saturday morning, San Francisco police responded to an unrelated medical call near Golden Gate Park. As they were finishing up with that call, they were approached by a man on the street who said he recognized Nayeri and the white van.

Police said Nayeri ran around the Park District police station and Kezar Stadium, the old-time football field where scenes from “Dirty Harry” were filmed in the 1970s.

Nayeri was taken into custody near the corner of Haight and Stanyan streets.

Tieu was hiding in the van when he was discovered by police.

The men, escaped Orange County jail sometime after a 5 a.m. headcount on Jan. 22, cutting through barriers, squeezing through a plumbing tunnel and rappelling off the roof using bed sheets as a rope. They weren’t discovered missing until after a second headcount around 8 p.m., giving them a head start of several hours.

Sheriff’s Capt. Jeff Hallock said the trio apparently fled to the San Jose area in a stolen white van with tinted windows and Duong later traveled back to Santa Ana to turn himself in. Duong is now cooperating with authorities, he said.

According to a report by CBS News, the fugitives spent two nights – Wednesday and Thursday – in room No. 14 at The Alameda Motel in San Jose. The manager, who didn’t want identify himself, said a friend paid for the room in cash. And he saw a white van parked outside. But by checkout time Friday morning, the men, considered armed and dangerous, were gone. So was the van.

All three of the escapees are accused of violent crimes: Duong is charged with attempted murder, Tieu is charged with murder and attempted murder, and Nayeri’s charges, which include torture, aggravated mayhem and two counts of kidnapping, stem from accusations that he kidnapped a marijuana store owner and severed his penis.

Nayeri, who is believed to have masterminded the escape, has fled prosecution at least twice before. He spent time in Washington, D.C., after fleeing officials in Madera County, where in 2005 he was in a drunken driving accident in which a passenger in his car was killed.

In 2012, after his initial arrest in the torture and kidnapping case, he jumped bail and fled to Iran. He was re-arrested in 2013 in Prague. Nayeri served time in the Marines Corps at Camp Pendleton but received a bad conduct discharge in 2001 for being absent without leave, according to military records.

On Thursday, Nooshafarin Ravaghi, a 44-year-old teacher from Lake Forest, was arrested on suspicion of aiding the men as they planned their escape.

Officials said Ravaghi worked part-time as an English as a Second Language teacher inside the jail and developed a close relationship with Nayeri, a former U.S. Marine who speaks English but took Ravaghi’s ESL courses.

Authorities on Friday did not describe the nature of the relationship but said Ravaghi and Nayeri, both originally from Iran, corresponded by mail.

“Their relationship was much more personal than it should have been,” Hallock said.

Ravaghi is expected to be arraigned Monday on charges of being an accessory to a felony. She is accused of providing Nayeri with a printout of a Google map that showed the roof of the jail.

As the sheriff’s department now shifts its focus to investigating what breakdowns led to the escape, Hutchens flatly denied that any changes in personnel or leadership have taken place so far at the Central Jail Complex.

However, the deputies union late Saturday released a statement indicating that a lieutenant has taken command of the Central Men’s Jail, rather than the captain who had been running the facility. A day earlier, union officials criticized the jail leaders, claiming they hadn’t listened to the rank and files earlier concerns about how inmate counts were carried out behind bars.

City News Service contributed to this report.