For convenience sake, the Noble Eightfold Path has been divided into three groups of practice, called Three Practices. Virtue - Sila, i.e. good conduct, taking precepts. Concentration - Samadhi, i.e. meditation, mental development. Discernment - Prajna, i.e. insight, enlightenment. Morality gives rise to concentration.
Concentration gives rise to wisdom.
If we want to be wise, we must be calm and concentrated in our mind. If we want to be calm and concentrated, we must take precepts with good conduct. As an analogy to a tree, morality is the root, concentration is the trunk and branches, while wisdom is the fruit. Amongst the Eightfold Path, the first two belong to discernment, and the last three belong to concentration. The remaining three belong to virtue.