Opioids are strong medicines that work by blocking or suppressing how your body feels pain. Before prescribing opioids, your healthcare provider will work closely with you to form a treatment plan.