The criminal justice system encompasses the entire process of investigating, prosecuting, adjudicating, and punishing criminal offenses. It includes law enforcement, prosecutors, courts, and corrections agencies working to maintain public safety.