Hydroxyzine is in a class of medications called antihistamines. It works by blocking the action of histamine a substance in the body that causes allergic symptoms. It also works by decreasing activity in the brain.