Antihistamines work by blocking the histamine receptors on cells, which prevents histamine from binding and causing symptoms such as itching, swelling, and vasodilation. There are two main types of histamine receptors: H1 and H2. Most antihistamines target the H1 receptor, which is primarily involved in allergic reactions.