Public goods play a crucial role in preventing and controlling infectious diseases and promoting overall public health. For example, vaccination programs help achieve herd immunity, which protects even those who cannot be vaccinated. Disease surveillance systems allow for the timely detection of outbreaks, enabling rapid response and containment.