A Carpinteria man was arrested for allegedly committing a flurry of robberies on the South Coast, according to the Santa Barbara Police Department.

Hipolito Francisco Hernandez, 47, was taken into custody in Port Hueneme on Friday, with the help of Ventura County sheriff’s deputies.

The first robbery occurred at City Market in Carpinteria on Jan. 13, and the second at Mechanics Bank in Santa Barbara on Jan. 14, according to police Sgt. Bryan Kerr.

A third related robbery took place at El Corte Perfecto in Carpinteria on March 3, Kerr said, adding that Santa Barbara officers worked with the Santa Barbara County Sheriff’s Office on the investigation.

After his arrest, evidence of the crimes was found in Hernandez’s possession, Kerr said, including a pellet gun.

Hernandez was booked into Santa Barbara County Jail, with a bail set at $1 million.

He remained in custody on Saturday afternoon.

Jail records show his name as Hipolito Francisco Hernandez Vargas.