A miscarriage of justice occurs when an unfair outcome occurs in a criminal or civil proceeding, such as the conviction and punishment of a person for a crime they did not commit. Miscarriages are also known as wrongful convictions. Innocent people have sometimes ended up in prison for years before their conviction has eventually been overturned. They may be exonerated if new evidence comes to light or it is determined that the police or prosecutor committed some kind of misconduct at the original trial. In some jurisdictions this leads to the payment of compensation.