Stink bugs are called stink bugs because they produce a foul-smelling chemical from glands in their abdomen when they feel threatened or disturbed. This unpleasant odor serves as a defense mechanism to discourage predators from eating them. The chemical responsible for the smell includes aldehydes and other compounds, which can produce scents ranging from oily and earthy to resembling cilantro or coriander. The odor is strong and can linger for hours if the bug is crushed or squished. The stink bug's ability to release this distinctive and unpleasant scent is what gave rise to their common name "stink bug".
