What regulations govern the installation of fences and walls?

Fences over 6 feet high are considered structures and require a permit.