STIs such as HIV, HPV, and herpes can cause significant histological changes. For instance, HIV targets and destroys CD4+ T cells, weakening the immune system and affecting lymphoid tissues. HPV can lead to dysplasia and cancerous changes, particularly in epithelial tissues like the cervix.