Ecosystems play a significant role in the transmission of infectious diseases. They provide habitats for vectors, such as mosquitoes, and hosts, such as wildlife, which can harbor pathogens. Changes in ecosystem dynamics can influence disease patterns and outbreaks. For instance, deforestation can lead to an increase in vector-borne diseases by altering habitats and increasing human-vector contact.