Glossary
Code enforcement
The local government work of inspecting properties and requiring owners to fix violations of building, housing and nuisance rules.
Also called: code compliance, code violation
Code enforcement is how a city or county makes sure properties follow the municipal code: building and housing codes, zoning, property maintenance and nuisance rules. Code enforcement officers or inspectors respond to complaints, often filed through a 311 line or online portal, and some departments also do routine inspections of rental housing.
The usual process starts with an inspection and a written notice of violation that gives the owner time to correct the problem, such as tall weeds, junk vehicles, unsafe wiring, a roof leak in a rental unit or an illegal addition. If the owner does not comply, the government may issue fines, hold a hearing before a code board or hearing officer, place a lien on the property, make repairs and bill the owner, or in serious cases declare a building unsafe and order it vacated or demolished. Procedures and penalties vary by locality.
Code enforcement draws local news coverage when it fails, as with dangerous rentals left uncorrected, and when it bears down, as with heavy fines on owners who cannot afford repairs. Tenants can usually request an inspection of unsafe conditions, though protections against retaliation differ by state.
Last reviewed November 13, 2026