The primary function of a building department is to review plans and inspect new residential and commercial construction for compliance with the latest New York State Building Code and any other applicable construction requirements.