Mental illness

Do the effects of substance abuse a cause of a mental illness or a symptom of the mental illness.