Occupancy permits are legal documents issued by local government agencies that certify a building's compliance with applicable building codes, zoning laws, and other regulations. They are essential for ensuring that a structure is safe for use and habitation, playing a critical role in land use regulation by enforcing standards that protect public health and safety.