A building code (also building control or building regulations) is a set of rules that specify the standards for constructed objects such as buildings and nonbuilding structures. Buildings must conform to the code to obtain planning permission, usually from a local council. The main purpose of building codes is to protect public health, safety and general welfare as they relate to the construction and occupancy of buildings and structures. The building code becomes law of a particular jurisdiction when formally enacted by the appropriate governmental or private authority.
Building codes are generally intended to be applied by architects, engineers, interior designers, constructors and regulators but are also used for various purposes by safety inspectors, environmental scientists, real estate developers, subcontractors, manufacturers of building products and materials, insurance companies, facility managers, tenants, and others. Codes regulating the design and construction of structures where adopted into law.
Examples of building codes began in ancient times. In the USA the main codes are the International Commercial or Residential Code [ICC/IRC], electrical codes and plumbing, mechanical codes. Fifty states and the District of Columbia have adopted the I-Codes at the state or jurisdictional level. In Canada, national model codes are published by the National Research Council of Canada.
The practice of developing, approving, and enforcing building codes varies considerably among nations. In some countries building codes are developed by the government agencies or quasi-governmental standards organizations and then enforced across the country by the central government. Such codes are known as the national building codes (in a sense they enjoy a mandatory nationwide application).