The article deals with the critique of the valid legal regulation by the issue of the illegal structure and the elimination of defects on the building and draws attention to the need to pay increased attention to these issues in the preparation of the so-called recodification of public building law.