SAN FRANCISCO — Federal immigration authorities say a suspected serial rapist charged with posing as a Northern California ride-hailing driver to prey on his victims was living in the country illegally.

The U.S. Immigration and Customs Enforcement agency said Tuesday it plans to deport Orlando Vilchez Lazo to his native Peru if he’s released from custody.

The 36-year-old was arrested last week on multiple allegations, including four counts of felony rape. He is jailed in lieu of $4.2 million in bail and is scheduled to appear in court Tuesday.

ICE asked the San Francisco Sheriff’s Department to detain Lazo for federal immigration custody if he’s ordered released from jail.

But officials believe the request will be ignored because San Francisco’s so-called sanctuary city policy bars local authorities from cooperating with most deportation efforts.