> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# Va. Code Ann. § 18.2-57.5 — Certain matters not to constitute defenses

- **Citation**: Va. Code Ann. § 18.2-57.5
- **Node Type**: section
- **Jurisdiction**: Virginia (state)
- **Code Body**: Code of Virginia (Aug. 2026 snapshot) (Va. Code Ann.)
- **Official Source**: [https://law.lis.virginia.gov/vacode/18.2-57.5/](https://law.lis.virginia.gov/vacode/18.2-57.5/)
- **Canonical URL**: [https://corpuslaw.us/codes/virginia/title-18-2/chapter-4/section-18-2-57-5](https://corpuslaw.us/codes/virginia/title-18-2/chapter-4/section-18-2-57-5)
- **Semantic URL**: [https://corpuslaw.us/codes/virginia/title-18-2/chapter-4/section-18-2-57-5](https://corpuslaw.us/codes/virginia/title-18-2/chapter-4/section-18-2-57-5)

## Hierarchy

Title 18.2 > Chapter 4

## Text

A. Another person's actual or perceived sex, gender, gender identity, or sexual orientation is not in and of itself, or together with an oral solicitation, a defense to any charge brought under this article.

B. Nothing in this section shall be construed to prevent a defendant from exercising his constitutionally protected rights, including his right to call for evidence in his favor that is relevant and otherwise admissible in a criminal prosecution.

2021, Sp. Sess. I, c. 460 .
