Witness immunity from prosecution occurs when a
prosecutor grants immunity to a
witness in exchange for
testimony or production of other
evidence. It is immunity because the prosecutor essentially agrees to never prosecute the crime that the witness might have committed in exchange for said evidence.