Criminal procedure is the set of legal procedures governing the investigation and prosecution of criminal offenses.