The article is devoted to ensuring legality in the sphere of the implementation of executive power. It examines the general state of legality in the sphere of the implementation of executive power, the activities of executive authorities in the modern period, attempts to optimize public administration in terms of the implementation of executive power, and makes proposals for its improvement by legal, organizational, and cultural means. The category of implementation of executive power is considered by the author as a complex phenomenon consisting of a number of elements, characterized by simple and complex, direct, reverse and diagonal connections, taking into account the multiplicity of elements by other connections, when the implementation of executive power as an integral part of public administration in the broadest sense of the word and part of public administration acquires a wide scale, in addition, the author comes to The conclusion is that complexity characterizes all its functional parameters. The author puts forward the thesis that the phenomenon of the rule of law in the sphere of executive power is that the category of legality is as complex as it is simple.: it is complex due to the multiplicity of elements, the diversity of competence, the legal relations of the subjects of executive power, in terms of activity, since the implementation of executive power as labor does not exclude deviations from the set ideal parameters; it is simple, due to the seemingly understandable rule about the need to comply with the law, strictly follow the rule of law, act within the limits of the provided competence. At the same time, despite the simplicity of the rule, some real cases of "deviations from the set parameters" of the ideal model necessitate the search for ways to optimize the implementation of executive power based on the principle of legality and in the regime of legality as an important benevolent legal category capable of acting clearly and clearly to the subjects of executive power to achieve a publicly significant goal. The author also argues that a major role in achieving a publicly significant goal in the process of implementing executive power is played by the general and legal culture of subjects of public legal relations, the ability to measure their possible and proper behavior with the opposite side of the legal relationship, and to take into account the specifics of the visa. The author proves the importance of the role of the moral component in the process of harmonizing public administration in the regime of legality and comes to the conclusion that legality is a necessary constant in the implementation of executive power (public administration), since only in the regime of legality deviations from established rules and patterns of behavior are minimized, when it can be stated that a successful model of behavior and a high–quality rule of law normative, as well as applied moral and ethical.