> 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).

# SDCL § 22-35-7 — Affirmative defenses to unlawful occupancy.

- **Citation**: SDCL § 22-35-7
- **Node Type**: section
- **Jurisdiction**: South Dakota (state)
- **Code Body**: South Dakota Codified Laws (through session laws effective 2026-09-03) (SDCL)
- **Official Source**: [https://sdlegislature.gov/Statutes/22-35-7](https://sdlegislature.gov/Statutes/22-35-7)
- **Canonical URL**: [https://corpuslaw.us/codes/south-dakota/title-22/chapter-22-35/section-22-35-7](https://corpuslaw.us/codes/south-dakota/title-22/chapter-22-35/section-22-35-7)
- **Semantic URL**: [https://corpuslaw.us/codes/south-dakota/title-22/chapter-22-35/section-22-35-7](https://corpuslaw.us/codes/south-dakota/title-22/chapter-22-35/section-22-35-7)

## Hierarchy

Title 22 — CRIMES > Chapter 22-35 — CRIMINAL TRESPASS

## Text

22-35-7. Affirmative defenses to unlawful occupancy.

It is an affirmative defense to prosecution under § 22-35-5 or 22-35-6 that:

(1) The premises were at the time open to members of the public and the person complied with all lawful conditions imposed concerning access to or the privilege of remaining on the premises; or

(2) The person reasonably believed that the owner of the premises, or other person permitted to license access to the premises, would have permitted him or her to enter or remain.

SL 1976, ch 158, § 35-3; SL 1977, ch 189, § 72; SL 2005, ch 120, § 291.
