Herd immunity occurs when a large group of people build up resistance to a virus. This makes it harder for the virus to spread further.