Texas homeowners associations have long had a say in fences. A section of the Texas Property Code now limits how far that say goes, while leaving associations plenty of room to set the rules on design and placement.
Section 202.023 of the Texas Property Code deals with security measures. It says a property owners association may not adopt or enforce a restrictive covenant that keeps an owner from building or installing security measures, and it lists a perimeter fence among them. In plain terms, an HOA covered by this section cannot simply ban a fence around your property.
The section does not apply everywhere. Condominiums and master mixed-use associations are excluded. If you live in a condo regime, your declaration still controls, and you should read it or ask the association before planning anything.