The NC Department of Justice has four primary functions: to provide legal representation to state agencies; to assist local law enforcement in fighting crime and prosecuting cases; to provide training and standards for law enforcement; and to protect North Carolina consumers.