The hostilities in Ukraine in 2022 had a devastating effect not only on the critical infrastructure of the regions but also on the educational infrastructure, resulting in the loss by some educational institutions of the ability to perform their functions, and other educational infrastructure began to perform functions not typical for them, including the accommodation of temporarily displaced persons. The article aims to outline the peculiarities of the functioning of the educational infrastructure in territorial communities during the war and to identify its exploitation problems and risks. The following methods are used for the study: abstract-logical, comparative analysis, graphical visualization, and statistical. The article analyzes the functioning of secondary educational institutions of territorial communities during the war in Ukraine. The regional peculiarities of the scale of the educational infrastructure destruction are clarified. Peculiarities and problems of exploitation of the territorial communities’ educational infrastructure in relatively stable regions are revealed. The algorithm of actions taken by local authorities of territorial communities to realize the exploitation of the infrastructure of educational institutions for a temporary stay of temporarily displaced persons is considered. The following risks caused by the war are identified: loss of human capital due to migration processes among students and educators, risks of financing general secondary education and reducing the quality of educational services, and limited possibility of resuming offline learning due to the destruction of educational institutions and the need for misuse. The peculiarities and problems of the organization of external independent evaluation in the conditions of martial law are analyzed, in particular, the simplification of the procedure of external evaluation and a number of risks for future applicants are clarified.