The state, as the primary institution of public authority in society, implements its functions through purposeful regulation of social relations in various spheres of activity, ensuring and protecting national interests, as well as implementing socially significant development programs (socio-economic, scientific-technical, spiritual-cultural, etc.) through allocated budget funds and national, regional, and local resources. State policy serves as the necessary instrument of such regulation (governance) and as a strategy that expresses national or regional goals and a program of measures to achieve them. The main goal is transforming state policy in the country under martial law conditions. The article is dedicated to analyzing the external and internal policies of the state during the war. Special attention is given to the possibility of using the method of legal modeling and implementing the special martial law regime. It is emphasized that Ukraine should prepare for a war economy. When analyzing the peculiarities of state policy under conditions of war, it is considered that, depending on the spheres of its implementation, it is formed by state policy in the economic system, social policy, policy in the area of scientific-technical activities, and so on. It is determined that a reactive (situation-based) state policy model is applied under war conditions. Meanwhile, a project-based approach based on budget program development is used in peacetime. One of the key problems is a clear understanding of the national idea in modern Ukraine. This idea should become the basis for building a positive country brand image. The critical problem of modern states lies in the efficiency of national economies and social systems and state institutions' effectiveness. Under any economic, social, or public conditions, the state will be incapable of its institutions cannot ensure its effective functioning. The formation and implementation of state policy in Ukraine during the war are examined using PEST analysis. Factors are identified whose influence resolution will determine the effectiveness of Ukraine's state policy. During martial law in Ukraine, the state rapidly responds to new challenges and problems citizens and businesses face. Legal solutions are developed that significantly improve the country's defense capability, its macroeconomic stability and ensure social security for the population. The conducted research allows identifying the main directions for modernizing state policy in the post-war period. The prospects for further research include determining the peculiarities of the functioning of the military economy in Ukraine and developing a strategy for post-war reconstruction.