When applied to a wound, hydrocolloids interact with wound exudate to form a gel-like substance. This gel helps to maintain a moist environment that promotes cell migration and growth. The occlusive nature of the dressing also helps to protect the wound from external bacteria and contaminants, reducing the risk of infection.