Opioids mimic the body's natural pain relievers, binding to receptor proteins in the brain and sometimes inducing euphoria.