Hydrocodone is a semi-synthetic opioid derived from either of two naturally occurring opiates—codeine and thebaine.