Via NPR:

Prosecutors have wide latitude when negotiating plea deals. It typically depends on the facts of each case. In several U.S. cities now, prosecutors are using their discretion to protect defendants who are immigrants. They want to ensure that immigrants, whether here illegally or seeking citizenship, don't get deported for minor crimes. NPR's Richard Gonzales reports.