The article examines the legal mechanisms for ensuring the financial security of the state under martial law. The concept of the country’s financial security and its place in the system of general national security of Ukraine is revealed. It is established that under martial law, the issue of mechanisms for legal regulation of the financial security of Ukraine becomes exceptionally relevant. The concept of financial security is studied as a state of protection of the country’s financial system from internal and external threats in order to ensure the stability of the economy and its effective functioning. Existing threats and risks to the financial security of Ukraine are identified. It is proved that ensuring the economic security of the state is an integral mechanism that acquires a certain specificity during martial law, because there is a need to concentrate financial resources on defense measures, since under such conditions there is a real threat to the national economy. The concept and legislative support of the legal mechanisms of the state’s financial security are considered, as a set of legal means implemented by state institutions to prevent emerging threats to the country’s financial system and ensure the stability of the state’s finances. The main elements of the legal mechanisms are highlighted, namely the legal framework, methods and forms of regulation, resources for provision and control procedures. It is indicated that the combined functioning of all these elements will ensure the stability of the financial system and the achievement of strategic goals for achieving the country’s financial security. Also, attention is drawn to the fact that the existing state of the legal mechanisms for ensuring the financial security of Ukraine is characterized by the imperfection of legal acts, the absence of a Concept for the development of the legal framework for mechanisms for regulating security in the financial sector, duplication of individual mechanisms, and a low level of legal support for financial security mechanisms, because in times of war, problems in the financial sector are exacerbated and new threats arise, which requires the improvement of existing legal mechanisms for ensuring the financial security of Ukraine.