Unclean hands may be raised as a defense to a malicious prosecution action. Here, the jury voted in favor of the defense based on evidence that the plaintiff had lied at her deposition in the underlying action, leading the defendant not to amend its cross-complaint after plaintiff’s demurrer to it was sustianed with leave to amend. Whether the particular misconduct at issue is a bar to the alleged claim for relief depends on (1) analogous case law, (2) the nature of the misconduct, and (3) the relationship of the misconduct to the claimed injuries. (Kendall-Jackson Winery, Ltd. v. Superior Court (1999) 76 Cal.App.4th 970, 979.) All three prongs were satisfied in this case. Accordingly, the judgment against plaintiff on the jury verdict was affirmed.