The purpose of this paper is to suggest some ways and mechanisms for creating long-term peace based on sustainable development of the world and the purpose of the work is to develop recommendations aimed at counteracting the emergence of dictatorial regimes that were legitimately established. Five common features of such dictators have been identified, namely: coming to power in a legitimate way, using manipulative technologies, openly declaring their aggressive intentions, gradually implementing their aggressive intentions, creating a military potential with the active participation of developed countries, including those with established democracies. The reasons for the creation of dictatorial regimes are substantiated, namely: the imperfection of electoral legislation, excessive conservatism of legislation, insufficient determination and timeliness of countering the strengthening of dictatorships, “national egoism”, the unscrupulousness of dictators in their foreign and domestic policies. It was determined that in order to actively oppose dictatorial regimes, it is necessary to: improve the system of elections to the highest positions and to the legislative bodies of the state, put a strong barrier against manipulative technologies and fakes, through the improvement and effective application of international legislation with the involvement of artificial intelligence, determine the strategy of relations with dictators in all directions in advance: economic, diplomatic, sports, scientific and technical, etc., establish the scope of relations in direct proportion to the index of democracy in a country with an authoritarian regime and, in order to prevent negative consequences on the economy and social condition of the society of one’s country, determine and carefully regulate import and export activities. It is proposed to start an indicator of the effectiveness of the head of state and an internal truth index of the head of state, as well as measures for moral stimulation of heads of state. As a result of the study, two root causes of threats to the existence of humanity were additionally identified, which directly affect the formation of dictatorial regimes. 1) The emergence on the basis of modern information technologies of a powerful system of manipulative technologies, the use of which leads to the power of future dictators. 2) Belated opposition of the democratic world to the formation of dictatorships. This is expressed in condescension to the initial illegal actions of future dictators, uncontrolled cooperation in the economic, political and humanitarian spheres. Two key mechanisms for achieving sustainable development and long-term peace are proposed.