Arresting non citizens

Here, in the USA, say somebody from a foreign country, here on some sort of VISA, or with a green card, or whatever, commits a crime, say, murder…

  1. If convicted, could they be sentenced to a state prison or penitentiary?
  2. If so, what happens if the sentence is past the expiration date on their VISA?

Thanks.

They are subject to American law. That is one of the main conditions of entry. However, their home country may well have an extradition treaty in force with the US, in which people wanted by the police in the country where they are not physically present may be arrested by the authorities in the country where they are and returned to the other country. A part of this deal is often that a citizen of country X arrested in the United States for a crime committed in the United States may be able to serve his or her custodial sentence in the home country. This is a subject of much diplomatic politicking and does not necessarily happen in any given case, treaty or no.

If are charged with a crime, your visa becomes fairly unimportant.

Yes, happens all the time.

Usually they serve their sentence and then get immediately deported.

Thank you.
Yeah, I figured that foreigners could be arrested, but then I thought, if they’re being held on a state charge and their federal VISA runs out, would there be a state/federal conflict. But I guess not. Thanks again.