Quick summary
California Penal Code 647(e) makes it a misdemeanor to lodge (stay or camp, often called squatting) in any building, structure, vehicle or place, public or private, without permission from the owner or the person in control of it.
- Penalties: Up to 6 months in county jail and a fine of up to $1,000.
- What counts as lodging: Settling in to stay, such as setting up a tent or bedding for the night. Briefly lingering is not lodging.
- Defenses: Permission from the owner or manager, or conduct that didn’t amount to lodging.
- Example: Jordan pitches a tent in a city plaza and keeps his belongings there overnight without permission. That can be illegal lodging.
PC 647(e) is a form of disorderly conduct under Penal Code 647. The law makes it a crime when a person:1
(e) … lodges in a building, structure, vehicle, or place, whether public or private, without the permission of the owner or person entitled to the possession or in control of it.
1. When is squatting or lodging illegal in California?
In California, Penal Code 647(e) prohibits unlawful lodging, often called squatting. It can also cover setting up a temporary shelter, like a tent, or sleeping on property without permission from the owner or the person in control of it.
The law applies to public property, such as parks and plazas, as well as private property. Enforcement against homeless people has been controversial. In 2024, the U.S. Supreme Court held that enforcing general laws against camping on public property does not violate the Eighth Amendment’s ban on cruel and unusual punishment, even when a person has nowhere else to sleep.2 That ruling made it easier for California cities to enforce anti-camping laws.
2. What does “lodging” mean?
Lodging generally means settling in to stay in a place, rather than just passing through. The statute doesn’t define it, and the line where lodging begins is not always clear. Facts that suggest someone is lodging include:
- setting up a temporary shelter, like a tent,
- intending to stay the night, and
- setting up a sleeping bag or cot.
Simply lingering or loitering on property is not lodging.
3. Who has permission to lodge somewhere?
You can’t violate PC 647(e) if you have permission from the owner or the person in control of the property. Permission can be:
- Express: the owner or manager says, or a sign states, that staying there is allowed.
- Implied: the owner or manager knows people stay on the property and allows it. Whether silence alone counts as permission depends on the facts.
4. Who can give permission?
The owner, or a person entitled to possess or in control of the property, can give permission. Owners hold title to the property. Managers and tenants may not own it, but they may have the right to possess or control it.
5. What are some examples of illegal squatting?
- living in a car in a shopping mall parking lot without permission,
- sleeping in a tent in a public square owned by the city, with belongings like a guitar, books and a radio inside,3 and
- sleeping on a cot in an apartment without the renters’ permission.4
6. Are there related offenses?
A PC 647(e) charge can come with charges for:
- Loitering on private property (Penal Code 647(h) PC): lingering on someone else’s property without a lawful purpose, in order to commit a crime if the chance comes up.5
- Trespassing (Penal Code 602 PC): entering or staying on someone’s property without permission. Illegal lodging charges often come with a trespassing charge.
- Failure to disperse (Penal Code 416 PC): refusing a lawful order to leave when two or more people have gathered to disturb the peace or commit an unlawful act.6
7. Are there any legal defenses?
People accused of illegal lodging can raise several defenses. Common ones include showing that:
- the conduct didn’t amount to lodging, and/or
- the owner or person in control of the property gave permission.
The line between lodging and simply being somewhere is vague. Evidence that you weren’t settling in to stay can be a strong defense, though you could still face a lesser charge such as loitering.
Permission from the owner or person in control of the property is a complete defense to PC 647(e).
8. What are the penalties of a conviction?
Illegal lodging under PC 647(e) is a misdemeanor in California. A conviction can bring:7
- up to 6 months in jail, and/or
- a fine of up to $1,000.
For people who are already struggling to make ends meet, these penalties can be especially hard.
Legal references:
- California Penal Code 647(e) PC (text as of November 2026).
- City of Grants Pass v. Johnson (2024) 603 U.S. 520.
- Stone v. Agnos (9th Cir. 1992) 960 F.2d 893.
- People v. Lyons (1971) 18 Cal.App.3d 760.
- California Penal Code 647(h) PC.
- California Penal Code 416 PC.
- California Penal Code 19 PC.