In almost all historical periods, the key ideas of building statehood in Ukraine were the ideas of social and national liberation, building a financially and culturally independent state, because for a long period of time Ukraine was under the oppression of other states. The proclamation of the state independence of Ukraine on August 24, 1991 significantly actualized the problem of state formation of the young independent country and raised the issue of state, economic, political and spiritual development of Ukraine in a fundamentally new way. But a successful and productive solution to this problem is impossible without historical and cultural discourse, which aptly demonstrates the defeats and victories along the way. It is known that the potential for successful state formation for many historical reasons, primarily due to the colonization of Ukraine by the Russian Empire, has not been fully realized. However, they show that these lost opportunities can become a source of state-building development at the present stage of Ukraine's development. Target setting. To realize the possibilities of successful development and prosperity of modern Ukrainian society, it is necessary to thoroughly analyze the phenomenon of state formation at the crucial stages of the country's development. Analysis of this process has not only theoretical but also practical significance. After all, it testifies to those important examples of successful state-building process, which were embodied in the real life of Ukrainian society, and can serve as an example for the successful development of our country. Actual scientific researches and issues analysis. The process of state formation, the study of which is extremely relevant today, is presented in the scientific literature from different angles. S. Grabovsky, Y. Rymarenko, Y. Shemshuchenko, S. Kulchytsky, A. Fortushny, N. Gedikova, A. Shklyar and other scholars are currently studying the legal, political, economic, historical and philosophical aspects of state formation. Recently, Ukrainian experts in the field of public administration, such as N. Kolosovska, V. Khodakovsky, O. Kuts, Y. Kun, V. Semenov and others analyze various aspects of this phenomenon, highlighting the main tasks of state formation, ethno-national factors of state formation and its regional features, etc. The problem of consolidation of the Ukrainian society of transitional type and the corresponding social changes is raised in the works by M. Mikhalchenko, V. Andrushchenko, L. Gubersky, V. Gorsky, V. Kremen, G. Kasyanov, M. Popovych, M. Rozumny, G. Gorak, M. Ryabchuk, M. Stepyko, A. Shevtsova and other scientists. A large number of works have recently been devoted to the disclosure and interpretation of the concept of "state formation" in the scientific literature, but in these studies the phenomenon of state formation is interpreted from the standpoint of culture, history, law, political science, economics and public administration. From our point of view, all these studies are important, but to solve a number of problems at the present stage of development of Ukraine it is necessary to turn to the analysis of the genesis of state formation of Ukrainian society at the crucial stages of its history. The research objective. To analyze the genesis of state formation of Ukrainian society at the crucial stages of its history. Investigate the process of formation of the state and law in the days of Kievan Rus. To analyze the specifics of Ukrainian state formation in the era of Ukrainian Baroque, during which the Ukrainian nation was formed and the subjectivity of the Ukrainian state was formed. To reveal the crucial significance of 1917-1920 in the intensification of the national liberation movement among Ukrainians and the process of finding a state-building path. To analyze the main problems of modern state-building practice in Independent Ukraine and the specifics of formulating the national idea as an effective mechanism for consolidating the Ukrainian people on the basis of solidarity, morality, law, democracy and political stability. The statement of basic materials. The article analyzes the process of state formation in the days of Kievan Rus, associated with two traditions of law: the rules of customary law and the rules of written law. This grand process was contradictory: on the one hand, there was democracy (people's assembly (chamber), as a powerful institution of democracy, the meeting of the military, meetings of citizens in the cities), and, on the other hand, there was authoritarianism (inherited power of the prince, as the sole owner of the state, in whose hands were concentrated the judiciary and the army). An analysis of the specifics of the process of state formation in the days of Kievan Rus, made by M. Hrushevsky, who pointed to the low socio-political activity of the people, compared with the western space of the same period. It was the Baroque era that became decisive in the formation of the national liberation ideas of the Ukrainian people - the Zaporizhzhya Sich became a symbol of national character, strength, will and freedom for the Cossacks. The importance of the Constitution of Pylyp Orlyk in the statebuilding process of the Ukrainian Hetmanate is revealed, the key ideas of which were quite clear to all segments of the population. The crucial significance of 1917-1920 in the intensification of the national liberation movement among Ukrainians and the process of finding a state-building path was revealed. The current problems of modern statebuilding practice in Independent Ukraine and the specifics of formulating the national idea as an effective mechanism for consolidating the Ukrainian people on the basis of democracy, solidarity and political stability are analyzed. Conclusions. The decisive stages in the development of Ukrainian statehood are the embodiment of the main achievements of Ukrainian society in this area. Thus, the peculiarities of the formation of statehood in the days of Kievan Rus were influenced by several circumstances, first of all, the adoption of Christianity, which proclaimed the prince as God's messenger on Earth, and the lack of Roman law inherent in Western European feudal society. That is why the legal basis of state formation in this day became two rules of law: the rules of customary law and the rules of written law. The next decisive stage in the development of Ukrainian statehood took place in the era of Ukrainian Baroque. It was during this period that the Ukrainian state became a feudal statehood of the republican type. Philip Orlyk's Constitution proclaimed the basic principles of the existence of this state. In difficult historical crisis moments of state formation, the national idea begins to play a consolidating role in building a new system of spiritual and moral guidelines that help the nation to organize itself and move forward. In the XXI century, clear moral and spiritual guidelines and appropriate conditions for the formation and development of national consciousness, traditions and cultural identity will be able to unite the Ukrainian nation to build a strong welfare state. In this context, the national elite, as the main capable force of democratic change and reform, together with the Ukrainian people must draw wise conclusions from previous lessons of history, which will be the basis for the formation of a modern independent state [ABSTRACT FROM AUTHOR]