Most cities allow fences up to 6 feet tall in backyards and 4 feet in front yards. Local rules vary, so it’s best to check with your municipality.