Certain drugs can cause hallucinations. Some illegal drugs are taken because they cause hallucinations. Certain mental illnesses can also cause hallucinations. In some cases, withdrawal of a drug can also cause hallucinations. This has especially been reported by people trying to stop taking sleeping pills, or by alcoholics. 