Herd immunity means you need not vaccinate everyone in the population to keep them safe from certain diseases. You need only vaccinate, say, 90% of people and the remaining 10% will automatically be immune even if you don’t give them the vaccine.