Both types of infections are caused by microbes (bacteria and viruses)
Both types of infections are spread by things such as coughing and sneezing, contact with infected people, surfaces, food, water, pets, livestock, or insects such as fleas and ticks.