What makes a basement or attic legal
It can be, but only if the space was properly permitted and meets the building code for a living unit — and many basement and attic rentals were not. Simply having a bed and a door does not make a space a legal home.
To be a legal living unit, a basement or attic generally must meet code requirements such as adequate ceiling height, proper emergency exits and windows, ventilation, safe wiring, and often heat and moisture control. Basements can have dampness, mold, and exit problems; attics can have low ceilings, poor ventilation, and heat issues. When these standards are not met, the unit is often unpermitted or "illegal."
Regardless of permit status, if you are renting a basement or attic, you generally still have tenant rights, including the right to a habitable home and proper process before eviction.
If you are living in a basement or attic unit and are unsure whether it is legal or safe — especially if it has habitability problems or lacks a real exit — a free, confidential review can help you understand your rights.
This is general information about California tenant rights, not legal advice. Every situation is different.