667.21.
(a) Notwithstanding any other law, no person charged with a violent felony enumerated in subdivision (c) of Section 667.5 or a gang-related felony in violation of Section 186.22 shall be eligible for bail or released on his or her own recognizance pending trial if, at the time of the alleged offense, he or she was illegally within the United States. The sheriff of the county in which the subject is being held shall, as soon as practical, notify the federal Immigration and Customs Enforcement of the person’s arrest and charges.(b) This section shall not be construed to authorize the arrest of any person based upon his or her alien status or for violation of federal immigration laws.
(c) The sheriff, district attorney, and trial courts of each county shall record the status of any illegal alien charged with, booked for, or convicted of a felony and report this information to the Department of Justice for inclusion in that person’s criminal history so that reimbursement may be sought from the federal government for the cost of incarceration.
(d) The presiding judge shall make appropriate inquiries into the legal status of a defendant at the defendant’s bail hearings.