Under Gov. Code 821.6, a public employee is immune from liability for instituting or prosecuting a judicial or administrative proceeding. That immunity extends to investigation activities that precede a potential judicial proceeding. This decision holds that the immunity applies to policemen who investigate a crime scene. So plaintiff cannot recover from the police or their public employer for the emotional distress she suffered when the police left her dead husband’s body open to view for several hours with his pants drawn down so his genitals were visible while the police investigated the circumstances of his shooting death.