The building supervision in the sense of public law is carried out by the building supervisory authorities, which are involved in the implementation of building regulations and building planning law. The building regulations in Germany state law , d. This means that each federal state regulates it independently in the state building regulations. Building supervision is part of regulatory law and serves to avert danger . The building supervisory authorities have to take the necessary measures as part of their tasks. Which authorities are responsible for building supervision is determined by the respective state building regulations. Mostly, however, the districts and the independent cities are responsible. In some federal states such as B. Baden-Württemberg, larger municipalities belonging to the district also have responsibility for building supervision.