DEET works by interfering with the insect's ability to detect the carbon dioxide and other chemical cues that humans and animals emit, making it difficult for them to locate and bite their targets.