Waning immunity refers to the gradual decrease in the protective effect of the immune system against a specific pathogen over time following vaccination or natural infection. This phenomenon can lead to increased susceptibility to infections and is a critical factor in the epidemiology of many infectious diseases.