The gland of badgers responsible for producing a very unpleasant smell is the anal gland. Badgers have two anal glands located near their anus, which produce a very pungent and unpleasant smell when they are threatened or scared.
Badgers have a scent gland located under their tail that produces a pungent smell. This gland is responsible for marking their territory and communicating with other badgers. The odor emitted from this gland can be extremely foul and overwhelming.