A code enforcement lien is the moment a code problem stops being the owner's headache and becomes the house's problem. Up to that point, fines follow the owner. Once a lien is recorded, the cost is attached to the property itself, and it has to be dealt with before the place can cleanly change hands.
That shift matters to two people: the owner trying to get out from under it, and the buyer trying to figure out what they're actually taking on.
A code enforcement lien is a legal claim a city records against a property for unpaid code violation penalties and the cost of any work the city did to fix the problem. It attaches to the property, not just the owner, so it has to be cleared when the property is sold or refinanced, and in many places it holds the same priority as unpaid property taxes.
It's the last rung of the code enforcement process, and the building code violations guide covers where it fits in the bigger picture. (One note before the details: this is general information, not legal advice, and lien law varies a lot by state and city.)
How a violation turns into a lien
A lien doesn't appear with the first notice. It's the end of a sequence: the city issues a notice of violation with a deadline, the deadline passes, daily penalties accrue, and when those penalties (or the cost of the city fixing the problem itself) go unpaid, the city records them against the property.
That recording is the key event. Before it, an open violation with fines stacking up is real money owed, but it isn't on the property's title yet. After it, the amount is stuck to the house. In the data I track across seven Puget Sound markets, only about 35 cases have climbed all the way to a recorded "filed on title" status, out of tens of thousands of violations, because most owners fix the problem or sell long before it gets there. The lien is the rare, late rung, not the norm.
Where a code enforcement lien sits
Two things make a code enforcement lien heavier than an ordinary unpaid bill.
First, priority. In many jurisdictions a recorded code enforcement or abatement lien holds priority on par with property taxes, which puts it ahead of the mortgage. Seattle, for example, assesses unpaid penalties and abatement costs against the property at the same rank as delinquent property taxes, entered onto the tax rolls. That's senior debt, not a line item you can push to the back of the queue.
Second, title. Once recorded, the lien shows up on a title search, so it surfaces in any normal sale or refinance. The wrinkle, and this is the part investors care about, is timing. An open violation that's still accruing fines usually hasn't been recorded as a lien yet, so it won't appear on a title report even though the pressure is already building. That's the gap pulling code enforcement data directly catches and a title search misses.
| Open violation, fines accruing | Recorded code enforcement lien | |
|---|---|---|
| On the title? | Not yet | Yes, shows on a title search |
| Attached to | The owner | The property |
| Priority | Not established | Often on par with property taxes |
| Clears when | Owner fixes and pays | A release or satisfaction is recorded |
Do code enforcement liens survive foreclosure?
Often, yes, at least in part, and this is where people get surprised. Because many municipal code enforcement liens carry tax-level priority, they can survive a mortgage foreclosure that wipes out junior liens. A buyer at a foreclosure auction, or a lender taking the property back, can end up responsible for a code lien that outranked the loan.
The rules genuinely vary by state and by how the lien was created, so this is a check-the-statute situation, not a rule of thumb to bet a purchase on. The practical takeaway holds everywhere: never assume a foreclosure cleared a code enforcement lien. Confirm it before you count on it.
How to remove a code enforcement lien
The clean way is to resolve what created it:
- Fix the violation and pay the balance. Correct the underlying problem, pay the accrued penalties and any abatement costs, and ask the city for a lien release or satisfaction. Get that release recorded, because that's what actually clears title.
- Negotiate the amount. Many cities will reduce penalties that ran up over months once the violation is corrected, especially if the owner acted in good faith or is under hardship. It's worth asking. Daily fines that accrued for half a year can dwarf the cost of the repair itself.
- Handle it at sale. In a lot of distressed sales the lien is simply paid out of the seller's proceeds at closing, or negotiated into the deal. For a buyer, that makes it a number to account for in the offer, not automatically a dealbreaker.
Whatever the path, the lien isn't gone until the release is recorded. A paid-but-not-released lien still clouds title.
Buying a house with a code enforcement lien
A code enforcement lien isn't a reason to walk. It's a reason to underwrite carefully. Pull the full picture: the recorded lien amount, any still-open violations that haven't been liened yet, and whether the lien carries tax-level priority, which affects what a foreclosure would and wouldn't clear. Then price it in.
For an off-market buyer this is often where the opportunity sits. An owner staring at a recorded lien plus accruing fines is exactly the motivated seller the enforcement stage points to, and the free map shows where those cases are. Just make the lien part of the math before you make the offer.
Frequently asked questions
Can code violations put a lien on your house?
Yes, indirectly. The violation itself isn't a lien, but if you miss the compliance deadline and don't pay the resulting penalties, or the cost of the city fixing the problem, the city can record those amounts against your property as a code enforcement lien. It attaches to the house and has to be cleared when you sell or refinance.
How do you remove a code enforcement lien?
Correct the underlying violation, pay the accrued penalties and any abatement costs, and request a lien release or satisfaction from the city, then make sure the release gets recorded. Many cities will negotiate down penalties that accrued over months once the problem is fixed. The lien only clears title once the release is recorded, so paying alone isn't the finish line.
Do code enforcement liens survive foreclosure?
They can. Because many municipal code enforcement liens carry priority on par with property taxes, they can outrank a mortgage and survive a foreclosure that wipes out junior liens, leaving the new owner responsible. The rules vary by state and lien type, so confirm the specific statute rather than assuming a foreclosure wiped it out.
Do code enforcement liens show up on a title search?
Once recorded, yes, a code enforcement lien appears on a standard title search. The catch is timing: an open violation still accruing daily fines usually hasn't been recorded as a lien yet, so it won't show on a title report even though the cost is building. Pulling code enforcement data directly is how you see that pressure before it reaches title.
Is buying a house with a code enforcement lien a bad idea?
Not necessarily. A recorded lien is a known, quantifiable number you can account for in your offer or have paid at closing. The bigger risk is the liens and violations you don't find, so do the diligence: check the recorded lien amount, any open-but-not-yet-liened violations, and whether the lien has tax-level priority. Priced correctly, a lien often marks a motivated seller rather than a dealbreaker.