What is a building code?

A building code is a set of rules and regulations that govern the design, construction, and maintenance of buildings and other structures. Building codes are typically adopted by local governments and are enforced by building inspectors.

They are designed to protect the public health, safety, and general welfare by ensuring that buildings are constructed in a safe and sound manner.