In the United States, the fire code (also fire prevention code or fire safety code) is a model code adopted by the state or local jurisdiction and enforced by fire prevention officers within municipal fire departments. It is a set of rules prescribing minimum requirements to prevent fire and explosion hazards arising from storage, handling, or use of dangerous materials, or from other specific hazardous conditions. It complements the building code. The fire code is aimed primarily at preventing fires, ensuring that necessary training and equipment will be on hand, and that the original design basis of the building, including the basic plan set out by the architect, is not compromised. The fire code also addresses inspection and maintenance requirements of various fire protection equipment in order to maintain optimal active fire protection and passive fire protection measures.