Enlightenment is gained through ignorance. Ignorance proceeds sorrow, pain and suffering. Refinement through pain come wisdom and knowledge which in turn becomes enlightenment and to know better is to do better.