Vicodin is primarily prescribed to relieve moderate to severe pain, such as post-operative pain, dental pain, or injury-related pain.