Vicodin is a drug that doctors prescribe for bad pain. It has two parts: hydrocodone and acetaminophen. Hydrocodone helps with pain, while acetaminophen helps with pain and fever. Vicodin works by connecting to certain parts of the brain and spine to make pain less. Acetaminophen also helps with fever and pain, but in a different way than hydrocodone.