Antihistamines work by altering the way cells are affected by a substance called histamine. Histamine is a chemical the immune system uses to help protect the body's cells against infection.
Usually histamine is a useful substance, but if you're having an allergic reaction it's sometimes necessary to block its effects. Allergic reactions occur when your immune system mistakes a harmless substance, such as pollen, for a threat.