UHC plays a crucial role in preventing and controlling epidemics. By providing widespread access to healthcare, it ensures early detection, timely intervention, and effective management of infectious diseases. This can prevent outbreaks from becoming large-scale epidemics or pandemics.