Not every person charged with a crime ends up going to trial or taking a plea deal. Many criminal cases end up being dismissed by the court or the prosecutor. One of the first things your attorney will do when they take on your case is to determine if there are grounds under which the prosecution should dismiss it.