Cyproheptadine is an antihistamine and antiserotonergic agent that blocks H1 histamine receptors and serotonin receptors, reducing allergic symptoms such as itching, swelling, and hives. It also has anticholinergic properties, contributing to its sedative effects.