If you've received notices about code violations or discovered liens on your property, it can feel like the walls are closing in. These issues complicate a sale, but they don't necessarily prevent one — and understanding how they work can help you move forward instead of feeling stuck.

What code violations are

Code violations are citations from a local government for conditions that violate municipal or building codes — overgrown landscaping, unsecured vacant buildings, unpermitted additions, substandard housing conditions, or accumulated trash. They're enforced by the city or county, and unresolved violations can lead to fines, liens, abatement by the municipality (with the cost charged to you), or, in serious cases, receivership. Each California city has its own code, so the specifics depend on your location.

What property liens are

A lien is a legal claim against your property for a debt. Common types include mortgage liens, property-tax liens, mechanics' liens from unpaid contractors, HOA liens, judgment liens, and code-enforcement liens. Liens attach to the property, not just to you personally, and they generally must be paid or resolved before the property can transfer with clear title. A title search during escrow reveals liens.

How violations and liens affect a sale

Liens and some code violations must be resolved for a buyer to receive clear title — meaning the sale can't close cleanly until they're paid, negotiated, or otherwise settled. In a traditional sale, this can stall or kill a transaction if a buyer's lender won't finance a property with outstanding issues. A direct investor purchase can sometimes be more flexible: the buyer may accept certain violations or liens and resolve them through escrow using the sale proceeds, or structure the transaction to address them. But not every issue can be absorbed — serious title defects or active enforcement actions may require resolution first.

If you're facing code violations or liens, don't ignore the notices — they tend to get worse, not better, with time. Talk to the code-enforcement office, consult a real estate attorney for liens or title issues, and understand your options before the situation escalates.

Don't wait

Code violations and liens generally grow in cost and complexity the longer they sit. Fines accrue, liens can accrue interest, and enforcement can escalate to abatement or receivership. If you're considering selling, getting ahead of the issue — even just understanding what you're dealing with — can preserve your options and your equity. A conversation costs nothing, and it may reveal a path you didn't know was available.

Disclaimer: Homestead Solutions USA is a for-profit real estate investment company. We are not a government agency, nonprofit, law firm, or mortgage servicer. We do not provide legal representation, lender approvals, or guaranteed foreclosure prevention. Information on this site is educational and not legal, tax, or financial advice. This article is educational and was last updated on October 20, 2026. Laws and programs change — verify current information with the relevant California agency, HUD, or a qualified professional before making decisions.

Frequently Asked Questions

Can I sell a house with code violations?

Often, yes. Some buyers — particularly direct investors — will purchase a property with code violations and resolve them after closing. Traditional buyers and their lenders may be more hesitant. Disclose violations honestly and work through escrow to handle them properly. Serious or active enforcement cases may need resolution first.

Do liens have to be paid before I can sell?

Liens generally must be resolved for clear title to transfer. In a sale, they're often paid from the sale proceeds at closing through escrow. The key is knowing about them in advance — a title search reveals what's there so you and the buyer can plan. Some liens, like tax liens, may need to be addressed before closing.

What happens if I ignore a code violation?

Fines accrue, the violation may be recorded as a lien, and the city can abate the issue (fix it and bill you) or, in serious cases, seek receivership of the property. Ignoring violations almost always makes them more expensive and harder to resolve. Address them promptly.

Have questions about your situation?

Every situation is different. We're here to listen and help you explore your options — no pressure, no judgment, no obligation.