Opium is a narcotic substance extracted from the opium poppy and often used in medicine and for recreational purposes. It is one of the oldest known narcotic substances and has been used for thousands of years. Opium contains several alkaloids, including morphine and codeine, which are responsible for its pain-relieving and addictive effects.