Gov. Code 844.6 grants state agencies immunity from liability for injury caused by a prisoner. This decision holds that the statute applies to bar plaintiffs’ FEHA claims that the Department failed to properly shield them from sexual harassment by prison inmates whom they, as Department employees, were assigned to treat. The prisoners proximately caused plaintiffs’ harm even if the Department’s failure to prevent the harm contributed to plaintiffs’ injury.