Abstract
The achievement of the person of intellectual, moral, spiritual freedom throughout the history of mankind was at the center of philosophical, theological, moral, ethical and political doctrines. The problem of freedom and necessity philosophy for a long time was regarded as antinomy: or everything is subordinated to necessity - then there can be no freedom, or there is freedom that denies necessity. An attempt to find out the dialectical connection between freedom and necessity was made by B. Spinoza, who recognized freedom as a conscious necessity. The concept of the stages of this awareness, which at the same time are the stages of socialization of a person, was developed by G.Gegal. Unconditional instruction of the moral consciousness to follow in the behavior of the law I. Kant considered as a categorical imperative, the condition of which is freedom of will.