Narcotics, also known as opioids, are a class of medications commonly used to manage moderate to severe pain. They work by binding to specific receptors in the brain, blocking pain signals and altering the perception of pain. While effective, narcotics carry a risk of dependence and side effects, necessitating careful monitoring by healthcare providers.