The duration of immunity after vaccination varies depending on the type of vaccine and the disease. Some vaccines, like the measles, mumps, and rubella (MMR) vaccine, can provide lifelong immunity, while others, like the flu vaccine, may need to be administered annually. Ongoing research helps determine the need for potential booster doses.