Immunity is a legal status that protects an individual from prosecution for a crime, often granted in exchange for testimony against another suspect. Even if the person committed the crime, they cannot be prosecuted once immunity is officially granted.