Durkheim defines morality as "a system of rules for conduct." His analysis of morality is strongly marked by Immanuel Kant and his notion of duty. While Durkheim was influenced by Kant, he was highly critical of aspects of the latter's moral theory and developed his own positions.  Durkheim agrees with Kant that within morality, there is an element of obligation, "a moral authority which, by manifesting itself in certain precepts particularly important to it, confers upon [moral rules] an obligatory character." Morality tells us how to act from a position of superiority. There exists a certain, pre-established moral norm to which we must conform. It is through this view that Durkheim makes a first critique of Kant in saying that moral duties originate in society, and are not to be found in some universal moral concept such as the categorical imperative. Durkheim also argues that morality is characterized not just by this obligation, but is also something that is desired by the individual. The individual believes that by adhering to morality, they are serving the common Good, and for this reason, the individual submits voluntarily to the moral commandment.  However, in order to accomplish its aims, morality must be legitimate in the eyes of those to whom it speaks. As Durkheim argues, this moral authority is primarily to be located in religion, which is why in any religion one finds a code of morality. For Durkheim, it is only society that has the resources, the respect, and the power to cultivate within an individual both the obligatory and the desirous aspects of morality.

Answer this question "What is Morality to Durkheim?" by extracting the answer from the text above.
Durkheim defines morality as "a system of rules for conduct."