Opiates, derived from opium, are powerful painkillers with medical benefits but can lead to addiction when misused. They work by binding to opiate receptors in the brain, influencing emotions, pain perception, and automatic bodily functions. Long-term use alters nerve cell function, leading to withdrawal symptoms when discontinued, hence medical supervision is crucial during treatment.