The article analyses such phenomena as national identity, Ukrainian national identity and their impact on state and international security. The essence of national identity, the factors of its formation, the influence of various factors on the development of this phenomenon are revealed. The study of national identity in terms of security is conditioned by modern socio-political realities, international conflicts, crises and wars. The author proves the necessity of reaching consensus through the formation of a national idea, structuring of identification patterns based on national identity and an effective system of political communication in order to achieve dialogue and ensure security at various levels. Attention is drawn to the impact of powerful migration processes on the formation of national identity in Europe and North America. The author emphasises the need to take these processes into account when making important political decisions, laws and legislative acts, creating certain political institutions, shaping the state's cultural policy, etc. The Ukrainian national identity is considered in the context of the Russian-Ukrainian war, which has become an additional factor in the awareness of Ukrainian national identity for citizens of other nationalities in Ukraine. On the other hand, the aggressor country carries out not only military actions, but also a powerful manipulative influence on citizens of the Russian Federation, other countries of the world, and Ukrainians. The author analyses the impact of information and communication technologies on international security. Attention is drawn to the difficulty of implementing the existing provisions of international law in terms of the responsibility of aggressor states for their crimes. It is about building trust and dialogue between the government and citizens. The author emphasises the urgency of finding political and legal mechanisms to influence aggressor states and bring them to justice.