Drug allergens work by activating the immune system. When a susceptible individual is exposed to a drug allergen, their immune system mistakenly identifies the substance as harmful. This leads to the production of antibodies and the release of various chemical mediators like histamines, which cause the symptoms associated with allergic reactions.