Assuming someone does not do anything it could require a few years to generate immunity to HPV. If an individual takes the writer's recommendations, it takes only a few months to generate immunity to HPV virus. The longer someone is infected with HPV, the more likely it can trigger cervical damage. So it is ideal to establish immunity so as to eliminate HPV as quickly as possible.