Hydroxyzine is an antihistamine that works by blocking H1 receptors, preventing the action of histamine, which reduces allergic reactions and provides sedation. It also has anticholinergic properties, contributing to its anxiolytic and sedative effects.